Add more tests for SAM wrappers

This commit is contained in:
Steven Schäfer
2019-09-16 13:43:23 +02:00
committed by Alexander Udalov
parent c3d0a7582c
commit 64aa50a921
6 changed files with 185 additions and 0 deletions
@@ -23690,6 +23690,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/sam/castFromAny.kt");
}
@TestMetadata("inlinedSamWrapper.kt")
public void testInlinedSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/inlinedSamWrapper.kt");
}
@TestMetadata("kt17091.kt")
public void testKt17091() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt17091.kt");
@@ -23725,6 +23730,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/sam/kt24825.kt");
}
@TestMetadata("nullableSam.kt")
public void testNullableSam() throws Exception {
runTest("compiler/testData/codegen/box/sam/nullableSam.kt");
}
@TestMetadata("partialSam.kt")
public void testPartialSam() throws Exception {
runTest("compiler/testData/codegen/box/sam/partialSam.kt");
@@ -23735,6 +23745,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/sam/partialSamKT.kt");
}
@TestMetadata("predicateSamWrapper.kt")
public void testPredicateSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/predicateSamWrapper.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/sam/receiverEvaluatedOnce.kt");