Add test for lambda as last expression in lambda
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
val foo: ((String) -> String) = run {
|
||||||
|
{ it }
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box() = foo("OK")
|
||||||
+6
@@ -16964,6 +16964,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lambdaAsLastExpressionInLambda.kt")
|
||||||
|
public void testLambdaAsLastExpressionInLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("nestedIntersection.kt")
|
@TestMetadata("nestedIntersection.kt")
|
||||||
public void testNestedIntersection() throws Exception {
|
public void testNestedIntersection() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
||||||
|
|||||||
@@ -16964,6 +16964,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lambdaAsLastExpressionInLambda.kt")
|
||||||
|
public void testLambdaAsLastExpressionInLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("nestedIntersection.kt")
|
@TestMetadata("nestedIntersection.kt")
|
||||||
public void testNestedIntersection() throws Exception {
|
public void testNestedIntersection() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
||||||
|
|||||||
@@ -16964,6 +16964,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lambdaAsLastExpressionInLambda.kt")
|
||||||
|
public void testLambdaAsLastExpressionInLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("nestedIntersection.kt")
|
@TestMetadata("nestedIntersection.kt")
|
||||||
public void testNestedIntersection() throws Exception {
|
public void testNestedIntersection() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
||||||
|
|||||||
@@ -20732,6 +20732,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lambdaAsLastExpressionInLambda.kt")
|
||||||
|
public void testLambdaAsLastExpressionInLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("nestedIntersection.kt")
|
@TestMetadata("nestedIntersection.kt")
|
||||||
public void testNestedIntersection() throws Exception {
|
public void testNestedIntersection() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nestedIntersection.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user