[FIR-TEST] Remove unnecessary test

This commit is contained in:
Dmitriy Novozhilov
2020-01-28 13:13:59 +03:00
parent ff3116f0ed
commit 056c3c95bb
4 changed files with 0 additions and 39 deletions
@@ -1,13 +0,0 @@
interface A
interface B : A
val A.name: String?
get() = ""
val B?.name: String?
get() = ""
fun test(b: B) {
val id = b.<!AMBIGUITY!>name<!>
}
@@ -1,16 +0,0 @@
FILE: ambiguityOnExtensionFunctions.kt
public abstract interface A : R|kotlin/Any| {
}
public abstract interface B : R|A| {
}
public final val R|A|.name: R|kotlin/String?|
public get(): R|kotlin/String?| {
^ String()
}
public final val R|B?|.name: R|kotlin/String?|
public get(): R|kotlin/String?| {
^ String()
}
public final fun test(b: R|B|): R|kotlin/Unit| {
lval id: <ERROR TYPE REF: Ambiguity: name, [/name, /name]> = R|<local>/b|.<Ambiguity: name, [/name, /name]>#
}
@@ -1061,11 +1061,6 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/resolve/testData/resolve/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@TestMetadata("ambiguityOnExtensionFunctions.kt")
public void testAmbiguityOnExtensionFunctions() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/ambiguityOnExtensionFunctions.kt");
}
@TestMetadata("asImports.kt")
public void testAsImports() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/asImports.kt");
@@ -1061,11 +1061,6 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/resolve/testData/resolve/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@TestMetadata("ambiguityOnExtensionFunctions.kt")
public void testAmbiguityOnExtensionFunctions() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/ambiguityOnExtensionFunctions.kt");
}
@TestMetadata("asImports.kt")
public void testAsImports() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/asImports.kt");