From ab79e60b6331190f0b41d5e6a4835915f2fdbaaa Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 22 Apr 2020 16:20:08 +0300 Subject: [PATCH] FIR2IR: consider integer literal type as error type --- .../src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt index 98d55c395e5..23e84eb20eb 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt @@ -99,7 +99,7 @@ class Fir2IrTypeConverter( intersectedTypes.first().toIrType(typeContext) } is ConeStubType -> createErrorType() - is ConeIntegerLiteralType -> getApproximatedType().toIrType(typeContext) + is ConeIntegerLiteralType -> createErrorType() } }