NI: discard def not null types if they appear in return positions, in inv or in variance
^KT-37343 Fixed
This commit is contained in:
@@ -10732,6 +10732,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInArguments.kt")
|
||||
public void testDefinitelyNotNullTypeInArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInReturnPosition.kt")
|
||||
public void testDefinitelyNotNullTypeInReturnPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInReturnPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInvariantPosition.kt")
|
||||
public void testDefinitelyNotNullTypeInvariantPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInvariantPosition.kt");
|
||||
|
||||
Generated
+10
@@ -10727,6 +10727,16 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/constraintOnFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInArguments.kt")
|
||||
public void testDefinitelyNotNullTypeInArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInReturnPosition.kt")
|
||||
public void testDefinitelyNotNullTypeInReturnPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInReturnPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definitelyNotNullTypeInvariantPosition.kt")
|
||||
public void testDefinitelyNotNullTypeInvariantPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/definitelyNotNullTypeInvariantPosition.kt");
|
||||
|
||||
Reference in New Issue
Block a user