[NI] Properly support UnsafeVariance annotation
#KT-38134 Fixed #KT-34433 Fixed #KT-31823 Fixed
This commit is contained in:
+15
@@ -9154,11 +9154,26 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsafeVarianceInAliasedFunctionalType.kt")
|
||||
public void testUnsafeVarianceInAliasedFunctionalType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsafeVarianceOnInputTypeOfFunctionalType.kt")
|
||||
public void testUnsafeVarianceOnInputTypeOfFunctionalType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/unsafeVarianceOnInputTypeOfFunctionalType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsafeVarianceStar.kt")
|
||||
public void testUnsafeVarianceStar() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/unsafeVarianceStar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsafeVarianceWithRecursiveGenerics.kt")
|
||||
public void testUnsafeVarianceWithRecursiveGenerics() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/unsafeVarianceWithRecursiveGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/projectionsScope/varargs.kt");
|
||||
|
||||
Generated
+5
@@ -12105,6 +12105,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsafeVarianceCodegen.kt")
|
||||
public void testUnsafeVarianceCodegen() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses")
|
||||
|
||||
Reference in New Issue
Block a user