[FIR-TEST] Mute failing tests with java kotlin supertypes cycle
This commit is contained in:
-33
@@ -1,33 +0,0 @@
|
||||
// FILE: K1.kt
|
||||
class K2: J1() {
|
||||
class Q : Nested()
|
||||
fun bar() {
|
||||
<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
<!UNRESOLVED_REFERENCE!>baz<!>()
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>superClass<!>()
|
||||
<!UNRESOLVED_REFERENCE!>superI<!>()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: J1.java
|
||||
public class J1 extends K2() {
|
||||
public class Nested {}
|
||||
|
||||
void baz() {}
|
||||
}
|
||||
|
||||
// FILE: K2.kt
|
||||
open class KFirst : SuperClass(), SuperI {
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: K3.kt
|
||||
abstract class SuperClass {
|
||||
fun superClass() {}
|
||||
}
|
||||
|
||||
interface SuperI {
|
||||
fun superI() {}
|
||||
}
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
FILE: K1.kt
|
||||
public final class K2 : R|J1| {
|
||||
public constructor(): R|K2| {
|
||||
super<R|J1|>()
|
||||
}
|
||||
|
||||
public final class Q : R|ERROR CLASS: Symbol not found, for `Nested`| {
|
||||
public constructor(): R|K2.Q| {
|
||||
super<R|ERROR CLASS: Symbol not found, for `Nested`|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final fun bar(): R|kotlin/Unit| {
|
||||
<Unresolved name: foo>#()
|
||||
<Unresolved name: baz>#()
|
||||
<Unresolved name: superClass>#()
|
||||
<Unresolved name: superI>#()
|
||||
}
|
||||
|
||||
}
|
||||
FILE: K2.kt
|
||||
public open class KFirst : R|SuperClass|, R|SuperI| {
|
||||
public constructor(): R|KFirst| {
|
||||
super<R|SuperClass|>()
|
||||
}
|
||||
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
FILE: K3.kt
|
||||
public abstract class SuperClass : R|kotlin/Any| {
|
||||
public constructor(): R|SuperClass| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun superClass(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
public abstract interface SuperI : R|kotlin/Any| {
|
||||
public open fun superI(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
// Compiler crashes on this tests so it's commented
|
||||
|
||||
//// FILE: K1.kt
|
||||
//class K2: J1() {
|
||||
// class Q : Nested()
|
||||
// fun bar() {
|
||||
// foo()
|
||||
// baz()
|
||||
//
|
||||
// superClass()
|
||||
// superI()
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//// FILE: J1.java
|
||||
//public class J1 extends K2() {
|
||||
// public class Nested {}
|
||||
//
|
||||
// void baz() {}
|
||||
//}
|
||||
//
|
||||
//// FILE: K2.kt
|
||||
//open class KFirst : SuperClass(), SuperI {
|
||||
// fun foo() {
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//// FILE: K3.kt
|
||||
//abstract class SuperClass {
|
||||
// fun superClass() {}
|
||||
//}
|
||||
//
|
||||
//interface SuperI {
|
||||
// fun superI() {}
|
||||
//}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
FILE: K1.kt
|
||||
FILE: K2.kt
|
||||
FILE: K3.kt
|
||||
Generated
+5
-5
@@ -509,11 +509,6 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/j+k/KJKComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("KJKComplexHierarchyNestedLoop.kt")
|
||||
public void testKJKComplexHierarchyNestedLoop() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/j+k/KJKComplexHierarchyNestedLoop.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("KJKComplexHierarchyWithNested.kt")
|
||||
public void testKJKComplexHierarchyWithNested() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/j+k/KJKComplexHierarchyWithNested.kt");
|
||||
@@ -647,6 +642,11 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/problems/inapplicableRemoveAll.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("KJKComplexHierarchyNestedLoop.kt")
|
||||
public void testKJKComplexHierarchyNestedLoop() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/problems/KJKComplexHierarchyNestedLoop.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("weakHashMap.kt")
|
||||
public void testWeakHashMap() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/stdlib/problems/weakHashMap.kt");
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Failures detected in FirSupertypeResolverTransformer, file: /K.kt
|
||||
Cause: kotlin.UninitializedPropertyAccessException: lateinit property fir has not been initialized
|
||||
Reference in New Issue
Block a user