[FIR] Split primary constructor parameter scope into two different
In init block or property initializers, for `val x` declared in primary constructor, `x` reference is now resolved to property, not to parameter. So we need two different scopes for primary constructor, one for 'pure' parameters and another one for all parameters, including val/var ones. #KT-42844 Fixed
This commit is contained in:
@@ -1810,6 +1810,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
public void testV8ArrayToList() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/V8ArrayToList.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarInInit.kt")
|
||||
public void testVarInInit() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/VarInInit.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/lambdas")
|
||||
|
||||
Reference in New Issue
Block a user