[FIR] Render integer literal types as Int in diagnostic messages
#KT-55662 Fixed
This commit is contained in:
committed by
Space Team
parent
cc87aabaec
commit
0c3d5c11b1
@@ -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")<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user