Fix bare typed smartcasts in NI

Star projections should be replaced with star projections
not for their expansions

See the test
This commit is contained in:
Denis Zharkov
2019-12-24 16:41:17 +03:00
parent abee908b94
commit ae4397fbfb
7 changed files with 98 additions and 3 deletions
@@ -8308,6 +8308,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/generics/argumentsForT.kt");
}
@TestMetadata("bareTypesWithStarProjections.kt")
public void testBareTypesWithStarProjections() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/bareTypesWithStarProjections.kt");
}
@TestMetadata("commonSupertypeContravariant.kt")
public void testCommonSupertypeContravariant() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/commonSupertypeContravariant.kt");
@@ -8303,6 +8303,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
runTest("compiler/testData/diagnostics/tests/generics/argumentsForT.kt");
}
@TestMetadata("bareTypesWithStarProjections.kt")
public void testBareTypesWithStarProjections() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/bareTypesWithStarProjections.kt");
}
@TestMetadata("commonSupertypeContravariant.kt")
public void testCommonSupertypeContravariant() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/commonSupertypeContravariant.kt");