[K2] Forbid to use "get class" in the context of string concat and equality
#KT-63941 Fixed
This commit is contained in:
+12
@@ -23693,6 +23693,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kCallable_before.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kClassInEquals.kt")
|
||||
public void testKClassInEquals() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kClassInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kClassInStringConcatenation.kt")
|
||||
public void testKClassInStringConcatenation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kClassInStringConcatenation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaCycle.kt")
|
||||
public void testKotlinJavaCycle() throws Exception {
|
||||
|
||||
+12
@@ -23693,6 +23693,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kCallable_before.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kClassInEquals.kt")
|
||||
public void testKClassInEquals() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kClassInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kClassInStringConcatenation.kt")
|
||||
public void testKClassInStringConcatenation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/kClassInStringConcatenation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinJavaCycle.kt")
|
||||
public void testKotlinJavaCycle() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user