Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/syntheticExtensionOnLHS.kt
T
2016-11-09 21:41:12 +03:00

25 lines
413 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// FILE: A.java
public class A {
private final String field;
public A(String field) {
this.field = field;
}
public CharSequence getFoo() { return field; }
}
// FILE: test.kt
fun box(): String {
with (A("OK")) {
val k = foo::toString
return k()
}
}