[FIR] Add tests for #KT-54670
This commit is contained in:
committed by
Space Team
parent
a53933d8ce
commit
3255bcfbee
+6
@@ -35480,6 +35480,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("unresolvedVarargType.kt")
|
||||||
|
public void testUnresolvedVarargType() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/varargs/unresolvedVarargType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("varargInSetter.kt")
|
@TestMetadata("varargInSetter.kt")
|
||||||
public void testVarargInSetter() throws Exception {
|
public void testVarargInSetter() throws Exception {
|
||||||
|
|||||||
+6
@@ -35480,6 +35480,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("unresolvedVarargType.kt")
|
||||||
|
public void testUnresolvedVarargType() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/varargs/unresolvedVarargType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("varargInSetter.kt")
|
@TestMetadata("varargInSetter.kt")
|
||||||
public void testVarargInSetter() throws Exception {
|
public void testVarargInSetter() throws Exception {
|
||||||
|
|||||||
+6
@@ -35480,6 +35480,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("unresolvedVarargType.kt")
|
||||||
|
public void testUnresolvedVarargType() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/varargs/unresolvedVarargType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("varargInSetter.kt")
|
@TestMetadata("varargInSetter.kt")
|
||||||
public void testVarargInSetter() throws Exception {
|
public void testVarargInSetter() throws Exception {
|
||||||
|
|||||||
+6
@@ -35594,6 +35594,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("unresolvedVarargType.kt")
|
||||||
|
public void testUnresolvedVarargType() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/varargs/unresolvedVarargType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("varargInSetter.kt")
|
@TestMetadata("varargInSetter.kt")
|
||||||
public void testVarargInSetter() throws Exception {
|
public void testVarargInSetter() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
fun testVarArgs(vararg v: <!UNRESOLVED_REFERENCE!>Smth<!>) {}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
fun testVarArgs(<!FORBIDDEN_VARARG_PARAMETER_TYPE!>vararg<!> v: <!UNRESOLVED_REFERENCE!>Smth<!>) {}
|
||||||
Generated
+6
@@ -36762,6 +36762,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
runTest("compiler/testData/diagnostics/tests/varargs/UnaryVsVararg.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("unresolvedVarargType.kt")
|
||||||
|
public void testUnresolvedVarargType() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/varargs/unresolvedVarargType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("varargInSetter.kt")
|
@TestMetadata("varargInSetter.kt")
|
||||||
public void testVarargInSetter() throws Exception {
|
public void testVarargInSetter() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user