[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
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// WITH_STDLIB
class Foo(val a: Int, b: Int) {
val c = a + b
@@ -7,4 +8,6 @@ class Foo(val a: Int, b: Int) {
val e: Int
get() = <!UNRESOLVED_REFERENCE!>b<!>
}
val map: Map<String, Int> = <!TYPE_MISMATCH("String; Int"), TYPE_MISMATCH("Int; String"), TYPE_MISMATCH("Map<String, Int>; Map<String, String>")!>mapOf(1 to "hello")<!>
}