Report incomplete hierarchy error
This is the case when you reference a Java class in Kotlin whose superclass is not resolved. Previously this fact was swallowed by LazyJavaClassDescriptor leading to mysterious compilation errors #KT-5129 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
package test;
|
||||
|
||||
public class Sub extends Super {
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
public class Super {
|
||||
public String foo() {
|
||||
return "!";
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
ERROR: compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt: (5, 22) Unresolved reference: foo
|
||||
ERROR: The following classes have incomplete hierarchies:
|
||||
test.Sub, unresolved: [Super]
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import test.Sub
|
||||
|
||||
class SubSub : Sub()
|
||||
|
||||
fun bar() = SubSub().foo()
|
||||
Reference in New Issue
Block a user