Extract diagnostics about an unsupported case of inheritance from Java

^KT-59152
This commit is contained in:
Mikhail Zarechenskiy
2023-06-07 14:06:45 +02:00
committed by Space Team
parent de78f52bc9
commit 1df4893a43
4 changed files with 8 additions and 4 deletions
@@ -9,8 +9,8 @@ public class A {
// FILE: main.kt
class <!UNSUPPORTED("Inheritance of a Java member referencing 'kotlin.jvm.functions.FunctionN': fun foo(w: FunctionN<*>!): Unit defined in A")!>B<!> : A()
class <!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>B<!> : A()
fun foo() {
<!UNSUPPORTED("Inheritance of a Java member referencing 'kotlin.jvm.functions.FunctionN': fun foo(w: FunctionN<*>!): Unit defined in A")!>object<!> : A() {}
<!UNSUPPORTED_INHERITANCE_FROM_JAVA_MEMBER_REFERENCING_KOTLIN_FUNCTION!>object<!> : A() {}
}