Extract effect from lambda argument if it is in parentheses
Otherwise, contracts on the parameter have no effect. #KT-42044 Fixed #KT-26229 Fixed
This commit is contained in:
Generated
+5
@@ -4239,6 +4239,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/contracts/exception.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldInConstructorParens.kt")
|
||||
public void testFieldInConstructorParens() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldReadInConstructor.kt")
|
||||
public void testFieldReadInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldReadInConstructor.kt");
|
||||
|
||||
Generated
+5
@@ -4239,6 +4239,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/contracts/exception.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldInConstructorParens.kt")
|
||||
public void testFieldInConstructorParens() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldReadInConstructor.kt")
|
||||
public void testFieldReadInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldReadInConstructor.kt");
|
||||
|
||||
+5
@@ -4239,6 +4239,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/contracts/exception.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldInConstructorParens.kt")
|
||||
public void testFieldInConstructorParens() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldReadInConstructor.kt")
|
||||
public void testFieldReadInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/contracts/fieldReadInConstructor.kt");
|
||||
|
||||
Reference in New Issue
Block a user