[FIR] KT-54874: Ensure this code is red
^KT-54874 Fixed
This commit is contained in:
committed by
Space Team
parent
6117f76a8c
commit
200fb1e5ce
+6
@@ -35881,6 +35881,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/InaccessibleInternalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectComparatorInvocation.kt")
|
||||
public void testIncorrectComparatorInvocation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/incorrectComparatorInvocation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instar.kt")
|
||||
public void testInstar() throws Exception {
|
||||
|
||||
+6
@@ -35881,6 +35881,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/InaccessibleInternalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectComparatorInvocation.kt")
|
||||
public void testIncorrectComparatorInvocation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/incorrectComparatorInvocation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instar.kt")
|
||||
public void testInstar() throws Exception {
|
||||
|
||||
+6
@@ -35881,6 +35881,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/InaccessibleInternalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectComparatorInvocation.kt")
|
||||
public void testIncorrectComparatorInvocation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/incorrectComparatorInvocation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instar.kt")
|
||||
public void testInstar() throws Exception {
|
||||
|
||||
+6
@@ -35977,6 +35977,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/InaccessibleInternalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectComparatorInvocation.kt")
|
||||
public void testIncorrectComparatorInvocation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/incorrectComparatorInvocation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instar.kt")
|
||||
public void testInstar() throws Exception {
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// ISSUE: KT-54874
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val comparator = <!NO_COMPANION_OBJECT!>Comparator<Long?><!>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// ISSUE: KT-54874
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val comparator = <!FUNCTION_CALL_EXPECTED!><!NO_VALUE_FOR_PARAMETER!>Comparator<!><Long?><!>
|
||||
}
|
||||
Generated
+6
@@ -36749,6 +36749,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/InaccessibleInternalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectComparatorInvocation.kt")
|
||||
public void testIncorrectComparatorInvocation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/incorrectComparatorInvocation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("instar.kt")
|
||||
public void testInstar() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user