Codegen: fix callable reference to member imported from object
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
import A.foo
|
||||
import A.bar
|
||||
|
||||
object A {
|
||||
fun foo() = "O"
|
||||
fun String.foo() = "K"
|
||||
|
||||
@JvmStatic
|
||||
fun bar(s: Int) = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val static = (::bar)(0)
|
||||
if (static != "OK") return "1"
|
||||
|
||||
return (::foo)() + (String::foo)("")
|
||||
}
|
||||
Reference in New Issue
Block a user