[FIR] Approximate integer constants in lhs of callable reference
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun Short.foo(): Int = 1
|
||||
fun Int.foo(): Int = 2
|
||||
|
||||
fun testRef(f: () -> Int) {}
|
||||
|
||||
fun test() {
|
||||
// should resolve to Int.foo
|
||||
testRef(1::foo)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
FILE: integerLiteralInLhs.kt
|
||||
public final fun R|kotlin/Short|.foo(): R|kotlin/Int| {
|
||||
^foo Int(1)
|
||||
}
|
||||
public final fun R|kotlin/Int|.foo(): R|kotlin/Int| {
|
||||
^foo Int(2)
|
||||
}
|
||||
public final fun testRef(f: R|() -> kotlin/Int|): R|kotlin/Unit| {
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
R|/testRef|(Int(1)::R|/foo|)
|
||||
}
|
||||
Reference in New Issue
Block a user