Use more specific error for secondary constructor bodies in inline classes
- Also, this error allows IDE to provide quick-fix that changes language version in a project that simplifies the adoption - There is no point in changing K2 part as there this feature will be enabled by default ^KT-56224 Fixed
This commit is contained in:
committed by
Space Team
parent
f3e022e4ca
commit
c586d7a03a
+6
@@ -18362,6 +18362,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/inlineClasses/reifiedGenericUnderlyingType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reservedConstructorsBodyInKotlinPre19.kt")
|
||||
public void testReservedConstructorsBodyInKotlinPre19() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inlineClasses/reservedConstructorsBodyInKotlinPre19.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reservedMembersAndConstructsInsideInlineClass.kt")
|
||||
public void testReservedMembersAndConstructsInsideInlineClass() throws Exception {
|
||||
|
||||
+6
@@ -18356,6 +18356,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/inlineClasses/reifiedGenericUnderlyingType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reservedConstructorsBodyInKotlinPre19.kt")
|
||||
public void testReservedConstructorsBodyInKotlinPre19() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inlineClasses/reservedConstructorsBodyInKotlinPre19.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reservedMembersAndConstructsInsideInlineClass.kt")
|
||||
public void testReservedMembersAndConstructsInsideInlineClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user