[NI] Assume that ILT is number type in inference
#KT-41679 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
a107e3d160
commit
99e681ec1d
@@ -556,7 +556,7 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
|
||||
|
||||
override fun KotlinTypeMarker.isSignedOrUnsignedNumberType(): Boolean {
|
||||
require(this is KotlinType)
|
||||
return classicIsSignedOrUnsignedNumberType()
|
||||
return classicIsSignedOrUnsignedNumberType() || constructor is IntegerLiteralTypeConstructor
|
||||
}
|
||||
|
||||
override fun findCommonIntegerLiteralTypesSuperType(explicitSupertypes: List<SimpleTypeMarker>): SimpleTypeMarker? {
|
||||
|
||||
Reference in New Issue
Block a user