[NI] Commonize detection of @OnlyInputTypes in NewConstraintSystemImpl

This commit is contained in:
Dmitriy Novozhilov
2020-08-26 13:26:17 +03:00
parent 64f0ee21c1
commit 6914aba5c2
5 changed files with 55 additions and 22 deletions
@@ -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
}
}