Fix incorrect unsupported error on synthetic extension call on LHS of ::
#KT-13271 Fixed
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user