[NI] Commonize detection of @OnlyInputTypes in NewConstraintSystemImpl
This commit is contained in:
+13
@@ -5,7 +5,9 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir.resolve.inference
|
||||
|
||||
import org.jetbrains.kotlin.fir.types.ConeKotlinType
|
||||
import org.jetbrains.kotlin.resolve.calls.inference.components.ConstraintSystemUtilContext
|
||||
import org.jetbrains.kotlin.types.model.KotlinTypeMarker
|
||||
import org.jetbrains.kotlin.types.model.TypeVariableMarker
|
||||
|
||||
object ConeConstraintSystemUtilContext : ConstraintSystemUtilContext {
|
||||
@@ -13,4 +15,15 @@ object ConeConstraintSystemUtilContext : ConstraintSystemUtilContext {
|
||||
// TODO
|
||||
return false
|
||||
}
|
||||
|
||||
override fun TypeVariableMarker.hasOnlyInputTypesAttribute(): Boolean {
|
||||
// TODO
|
||||
return false
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.unCapture(): KotlinTypeMarker {
|
||||
require(this is ConeKotlinType)
|
||||
// TODO, see TypeUtils.kt
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user