Update compiler tests after rebase

This commit is contained in:
Victor Petukhov
2021-09-30 15:12:24 +03:00
parent b5661ccabd
commit 5326c875c0
6 changed files with 62 additions and 1 deletions
@@ -8355,6 +8355,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/delegation/kt40510.kt");
}
@Test
@TestMetadata("kt44843.kt")
public void testKt44843() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/kt44843.kt");
}
@Test
@TestMetadata("kt8154.kt")
public void testKt8154() throws Exception {
@@ -13752,6 +13758,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/kt2872.kt");
}
@Test
@TestMetadata("kt46727.kt")
public void testKt46727() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/kt46727.kt");
}
@Test
@TestMetadata("kt46727Warnings.kt")
public void testKt46727Warnings() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/kt46727Warnings.kt");
}
@Test
@TestMetadata("memberScopeOfCaptured.kt")
public void testMemberScopeOfCaptured() throws Exception {
@@ -15795,6 +15813,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inline/kt21177.kt");
}
@Test
@TestMetadata("kt21177Warning.kt")
public void testKt21177Warning() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/kt21177Warning.kt");
}
@Test
@TestMetadata("kt4869.kt")
public void testKt4869() throws Exception {
@@ -15921,12 +15945,36 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inline/stringTemplate.kt");
}
@Test
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/superCall.kt");
}
@Test
@TestMetadata("superCallDepecation.kt")
public void testSuperCallDepecation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/superCallDepecation.kt");
}
@Test
@TestMetadata("superCallDepecationWarning.kt")
public void testSuperCallDepecationWarning() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/superCallDepecationWarning.kt");
}
@Test
@TestMetadata("superCallFromMultipleSubclasses.kt")
public void testSuperCallFromMultipleSubclasses() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/superCallFromMultipleSubclasses.kt");
}
@Test
@TestMetadata("superProperty.kt")
public void testSuperProperty() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/superProperty.kt");
}
@Test
@TestMetadata("unsupportedConstruction.kt")
public void testUnsupportedConstruction() throws Exception {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: -ProhibitSuperCallsFromPublicInline
// FILE: 1.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: -ProhibitSuperCallsFromPublicInline
// FILE: 1.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: -ProhibitSuperCallsFromPublicInline
// FILE: 1.kt
@@ -0,0 +1,11 @@
// MUTE_FOR_PSI_CLASS_FILES_READING
// FILE: J1.java
import io.reactivex.rxjava3.annotations.*;
public class J1<@NonNull T> {}
// FILE: main.kt
fun main() {
J1<Any?>() // violated nullability, no warnings; but there is an error with -Xtype-enhancement-improvements-strict-mode
}
@@ -1,4 +1,3 @@
// FIR_IDENTICAL
// MUTE_FOR_PSI_CLASS_FILES_READING
// FILE: J1.java