[FIR] Approximate integer constants in lhs of callable reference
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun Boolean.foo() = 1
|
||||
fun Byte.foo() = 2
|
||||
fun Short.foo() = 3
|
||||
|
||||
@@ -7,5 +7,5 @@ fun f(x: KClass<out Int>) {}
|
||||
fun test() {
|
||||
f(42::class)
|
||||
f((40 + 2)::class)
|
||||
<!UNRESOLVED_REFERENCE!>42::toInt<!>
|
||||
42::toInt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user