Don't check an argument type during passing it to vararg in the named form to avoid false positives if the argument type is type variable yet
^KT-41144 Fixed
This commit is contained in:
@@ -24942,6 +24942,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/AmbiguousVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignArrayToVararagInNamedFormWithInference.kt")
|
||||
public void testAssignArrayToVararagInNamedFormWithInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedFormWithInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignArrayToVararagInNamedForm_1_3.kt")
|
||||
public void testAssignArrayToVararagInNamedForm_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt");
|
||||
|
||||
Generated
+5
@@ -24862,6 +24862,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/AmbiguousVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignArrayToVararagInNamedFormWithInference.kt")
|
||||
public void testAssignArrayToVararagInNamedFormWithInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedFormWithInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignArrayToVararagInNamedForm_1_3.kt")
|
||||
public void testAssignArrayToVararagInNamedForm_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/varargs/assignArrayToVararagInNamedForm_1_3.kt");
|
||||
|
||||
Reference in New Issue
Block a user