[IR] Deal with forward references in default argument lambdas.
Rely on the frontend weeding out cases that are not supported. In psi2ir, introduce all the parameters before processing default values. Change the DefaultArgumentStubGenerator to generate code that matches the behavior of the current backend.
This commit is contained in:
@@ -581,6 +581,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
public void testTypeParameterBoundedBySubclass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useNextParamInLambda.kt")
|
||||
public void testUseNextParamInLambda() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/provideDelegate")
|
||||
|
||||
Reference in New Issue
Block a user