Add additional tests for bound receivers in callable references

This commit is contained in:
Steven Schäfer
2019-08-15 16:02:30 +02:00
committed by max-kammerer
parent d89d68e3df
commit 62a1ea643a
8 changed files with 118 additions and 0 deletions
@@ -1439,6 +1439,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/bound/primitiveReceiver.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/receiverEvaluatedOnce.kt");
}
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/simpleFunction.kt");
@@ -1976,6 +1981,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/receiverEvaluatedOnce.kt");
}
@TestMetadata("simpleExtension.kt")
public void testSimpleExtension() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/simpleExtension.kt");
@@ -1439,6 +1439,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/bound/primitiveReceiver.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/receiverEvaluatedOnce.kt");
}
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/simpleFunction.kt");
@@ -1976,6 +1981,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/receiverEvaluatedOnce.kt");
}
@TestMetadata("simpleExtension.kt")
public void testSimpleExtension() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/simpleExtension.kt");