NI: use the inferred type to check of nullable array for vararg

^KT-40555 Fixed
This commit is contained in:
Victor Petukhov
2020-07-27 13:03:45 +03:00
parent 9d63412b3e
commit cca64b8fab
7 changed files with 72 additions and 5 deletions
@@ -24929,6 +24929,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
runTest("compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt");
}
@TestMetadata("inferredNullableArrayAsVararg.kt")
public void testInferredNullableArrayAsVararg() throws Exception {
runTest("compiler/testData/diagnostics/tests/varargs/inferredNullableArrayAsVararg.kt");
}
@TestMetadata("kt1781.kt")
public void testKt1781() throws Exception {
runTest("compiler/testData/diagnostics/tests/varargs/kt1781.kt");
@@ -24849,6 +24849,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
runTest("compiler/testData/diagnostics/tests/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.kt");
}
@TestMetadata("inferredNullableArrayAsVararg.kt")
public void testInferredNullableArrayAsVararg() throws Exception {
runTest("compiler/testData/diagnostics/tests/varargs/inferredNullableArrayAsVararg.kt");
}
@TestMetadata("kt1781.kt")
public void testKt1781() throws Exception {
runTest("compiler/testData/diagnostics/tests/varargs/kt1781.kt");