[NI] Assume that ILT is number type in inference

#KT-41679 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-04-05 15:46:37 +03:00
committed by TeamCityServer
parent a107e3d160
commit 99e681ec1d
9 changed files with 46 additions and 4 deletions
@@ -386,6 +386,7 @@ interface ConeInferenceContext : TypeSystemInferenceExtensionContext, ConeTypeCo
override fun KotlinTypeMarker.isSignedOrUnsignedNumberType(): Boolean {
require(this is ConeKotlinType)
if (this is ConeIntegerLiteralType) return true
if (this !is ConeClassLikeType) return false
return isPrimitiveNumberOrUnsignedNumberType()
}