[FIR] Report inherited java members referencing FunctionN
^KT-60000 Fixed
This commit is contained in:
committed by
Space Team
parent
0c35e97a8d
commit
70e98c9c2b
@@ -1,4 +1,3 @@
|
||||
|
||||
// FILE: A.java
|
||||
|
||||
import kotlin.jvm.functions.FunctionN;
|
||||
@@ -7,10 +6,16 @@ public class A {
|
||||
public void foo(FunctionN<?> w) { }
|
||||
}
|
||||
|
||||
public class A2 {
|
||||
public FunctionN<?> foo() { }
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
class <!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>B<!> : A()
|
||||
class <!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>B2<!> : A2()
|
||||
|
||||
fun foo() {
|
||||
<!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>object<!> : A() {}
|
||||
<!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>object<!> : A2() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user