[FIR] Expand type of const val in FirConstPropertyChecker
This commit is contained in:
committed by
TeamCityServer
parent
669985f853
commit
478a512b24
+5
@@ -975,6 +975,11 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
|
||||
public void testConstValWithGetterOrDelegate() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithGetterOrDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constValWithTypealiasType.kt")
|
||||
public void testConstValWithTypealiasType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithTypealiasType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/constructors")
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
FILE: constValWithTypealiasType.kt
|
||||
public final typealias Foo = R|kotlin/Int|
|
||||
public final const val x: R|Foo| = Int(10)
|
||||
public get(): R|Foo|
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
typealias Foo = Int
|
||||
|
||||
const val x: Foo = 10
|
||||
+6
@@ -1128,6 +1128,12 @@ public class FirDiagnosticTestGenerated extends AbstractFirDiagnosticTest {
|
||||
public void testConstValWithGetterOrDelegate() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithGetterOrDelegate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constValWithTypealiasType.kt")
|
||||
public void testConstValWithTypealiasType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithTypealiasType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -1128,6 +1128,12 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
||||
public void testConstValWithGetterOrDelegate() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithGetterOrDelegate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constValWithTypealiasType.kt")
|
||||
public void testConstValWithTypealiasType() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/constVal/constValWithTypealiasType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user