FIR: implement isDenotable on type constructor more accurately

This commit is contained in:
Simon Ogorodnik
2019-04-23 04:12:44 +03:00
committed by Mikhail Glukhikh
parent 21d002ab6f
commit 26119f0403
@@ -253,7 +253,13 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext {
}
override fun TypeConstructorMarker.isDenotable(): Boolean {
return true // TODO
//TODO
return when (this) {
is ConeCapturedTypeConstructor -> false
is ConeTypeVariableTypeConstructor -> false
is ConeSymbol -> true
else -> true
}
}
override fun TypeConstructorMarker.isCommonFinalClassConstructor(): Boolean {