IR: Do not capture variables from method calls in ClosureAnnotator
To call a method of a class, you never need to supply any values of local variables (they would always be provided to the constructor).
This commit is contained in:
+5
@@ -17146,6 +17146,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/objects/objectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectLiteralInClass.kt")
|
||||
public void testObjectLiteralInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/objectLiteralInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectLiteralInClosure.kt")
|
||||
public void testObjectLiteralInClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/objectLiteralInClosure.kt");
|
||||
|
||||
Reference in New Issue
Block a user