[FIR2IR] Fix NSEE in case of lambda in enum entry constructor call, ^KT-50774 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
a65b278f71
commit
4a200a2d7e
+4
-1
@@ -336,7 +336,10 @@ internal class ClassMemberGenerator(
|
||||
it.dispatchReceiver = visitor.convertToIrExpression(firDispatchReceiver)
|
||||
}
|
||||
with(callGenerator) {
|
||||
it.applyCallArguments(this@toIrDelegatingConstructorCall, annotationMode = false)
|
||||
declarationStorage.enterScope(irConstructorSymbol.owner)
|
||||
val result = it.applyCallArguments(this@toIrDelegatingConstructorCall, annotationMode = false)
|
||||
declarationStorage.leaveScope(irConstructorSymbol.owner)
|
||||
result
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+6
@@ -2542,6 +2542,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
|
||||
runTest("compiler/testData/ir/irText/firProblems/kt43342.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaInEnumEntryConstructorCall.kt")
|
||||
public void testLambdaInEnumEntryConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassUsedBeforeDeclaration.kt")
|
||||
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user