Fix incorrect unsupported error on synthetic extension call on LHS of ::

#KT-13271 Fixed
This commit is contained in:
Alexander Udalov
2016-08-09 19:54:04 +03:00
parent 9dc7e90e12
commit bd88b0941d
8 changed files with 67 additions and 12 deletions
@@ -0,0 +1,13 @@
// FILE: A.java
class A {
public CharSequence getFoo() { return null; }
}
// FILE: test.kt
fun test() {
with (A()) {
foo::toString
}
}
@@ -0,0 +1,11 @@
package
public fun test(): kotlin.Unit
public/*package*/ open class A {
public/*package*/ constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open fun getFoo(): kotlin.CharSequence!
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}