[FIR] Render integer literal types as Int in diagnostic messages

#KT-55662 Fixed
This commit is contained in:
Kirill Rakhman
2023-05-02 15:02:20 +02:00
committed by Space Team
parent cc87aabaec
commit 0c3d5c11b1
6 changed files with 41 additions and 11 deletions
@@ -0,0 +1,13 @@
// WITH_STDLIB
class Foo(val a: Int, b: Int) {
val c = a + b
val d: Int
get() = a
val e: Int
get() = <!UNRESOLVED_REFERENCE!>b<!>
val map: Map<String, Int> = <!INITIALIZER_TYPE_MISMATCH, TYPE_MISMATCH("kotlin/String; kotlin/Int"), TYPE_MISMATCH("kotlin/String; kotlin/Int"), TYPE_MISMATCH("kotlin/Int; kotlin/String"), TYPE_MISMATCH("kotlin/String; kotlin/Int"), TYPE_MISMATCH("kotlin/Int; kotlin/String")!>mapOf(1 to "hello")<!>
}