FE: do not wrap types with enhancements if they're the same

This commit is contained in:
pyos
2021-07-27 09:39:44 +02:00
committed by Victor Petukhov
parent 8c524c2f89
commit c401582770
12 changed files with 211 additions and 1 deletions
@@ -636,6 +636,18 @@ public class ForeignAnnotationsCompiledJavaTestGenerated extends AbstractForeign
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {
@@ -784,6 +796,18 @@ public class ForeignAnnotationsCompiledJavaTestGenerated extends AbstractForeign
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {
@@ -636,6 +636,18 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {
@@ -784,6 +796,18 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {
@@ -636,6 +636,18 @@ public class ForeignAnnotationsSourceJavaTestGenerated extends AbstractForeignAn
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {
@@ -784,6 +796,18 @@ public class ForeignAnnotationsSourceJavaTestGenerated extends AbstractForeignAn
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/AnnotatedBoundsOfWildcard.fir.kt");
}
@Test
@TestMetadata("Captured.kt")
public void testCaptured() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.kt");
}
@Test
@TestMetadata("Captured.fir.kt")
public void testCaptured_fir() throws Exception {
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Captured.fir.kt");
}
@Test
@TestMetadata("Defaults.kt")
public void testDefaults() throws Exception {