[FIR] fix exception on primary constructor parameter without a type

^KTIJ-25869 fixed
This commit is contained in:
Ilya Kirillov
2023-06-23 17:27:38 +02:00
committed by Space Team
parent c6bd981fad
commit 36c8987df2
8 changed files with 125 additions and 2 deletions
@@ -3865,6 +3865,12 @@ public class DiagnosticCompilerTestFirTestdataTestGenerated extends AbstractDiag
runTest("compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt");
}
@Test
@TestMetadata("primaryConstructorParameterWithoutReturnType.kt")
public void testPrimaryConstructorParameterWithoutReturnType() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/problems/primaryConstructorParameterWithoutReturnType.kt");
}
@Test
@TestMetadata("questionableSmartCast.kt")
public void testQuestionableSmartCast() throws Exception {
@@ -3865,6 +3865,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated
runTest("compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt");
}
@Test
@TestMetadata("primaryConstructorParameterWithoutReturnType.kt")
public void testPrimaryConstructorParameterWithoutReturnType() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/problems/primaryConstructorParameterWithoutReturnType.kt");
}
@Test
@TestMetadata("questionableSmartCast.kt")
public void testQuestionableSmartCast() throws Exception {