[PSI2FIR] add test on primary constructor without constructor keyword

^KT-64900
This commit is contained in:
Dmitrii Gridin
2024-01-11 16:19:55 +01:00
committed by Space Team
parent 2c0cf9cad8
commit e60a436068
9 changed files with 50 additions and 0 deletions
@@ -369,6 +369,12 @@ public class FirOutOfContentRootLazyBodiesCalculatorTestGenerated extends Abstra
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@Test
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@Test
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
@@ -369,6 +369,12 @@ public class FirSourceLazyBodiesCalculatorTestGenerated extends AbstractFirSourc
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@Test
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@Test
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
@@ -321,6 +321,11 @@ public class LightTree2FirConverterTestCaseGenerated extends AbstractLightTree2F
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/propertyWithBackingField.kt");
@@ -0,0 +1,4 @@
// IGNORE_TREE_ACCESS: KT-64900
class Foo private () {
}
@@ -0,0 +1,7 @@
FILE: primaryConstructorWithoutConstructorKeyword.kt
public final? class Foo : R|kotlin/Any| {
private error_constructor(): R|Foo| {
LAZY_super<R|kotlin/Any|>
}
}
@@ -0,0 +1,7 @@
FILE: primaryConstructorWithoutConstructorKeyword.kt
public final? class Foo : R|kotlin/Any| {
private [ContainingClassKey=Foo] error_constructor(): R|Foo| {
super<R|kotlin/Any|>()
}
}
@@ -321,6 +321,11 @@ public class RawFirBuilderLazyBodiesByAstTestGenerated extends AbstractRawFirBui
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/propertyWithBackingField.kt");
@@ -321,6 +321,11 @@ public class RawFirBuilderLazyBodiesByStubTestGenerated extends AbstractRawFirBu
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/propertyWithBackingField.kt");
@@ -321,6 +321,11 @@ public class RawFirBuilderTestCaseGenerated extends AbstractRawFirBuilderTestCas
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/noPrimaryConstructor.kt");
}
@TestMetadata("primaryConstructorWithoutConstructorKeyword.kt")
public void testPrimaryConstructorWithoutConstructorKeyword() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/primaryConstructorWithoutConstructorKeyword.kt");
}
@TestMetadata("propertyWithBackingField.kt")
public void testPropertyWithBackingField() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/propertyWithBackingField.kt");