[FIR] Bind return expression to function symbol instead of function itself

This commit is contained in:
Dmitriy Novozhilov
2021-03-01 17:57:02 +03:00
committed by TeamCityServer
parent 245bc7c8e2
commit 714c2a8f93
12 changed files with 82 additions and 5 deletions
@@ -10940,6 +10940,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
public void testAllFilesPresentInFir() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@TestMetadata("classCanNotBeCastedToVoid.kt")
public void testClassCanNotBeCastedToVoid() throws Exception {
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")
@@ -10397,6 +10397,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testAllFilesPresentInFir() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@TestMetadata("classCanNotBeCastedToVoid.kt")
public void testClassCanNotBeCastedToVoid() throws Exception {
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")
@@ -10397,6 +10397,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testAllFilesPresentInFir() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@TestMetadata("classCanNotBeCastedToVoid.kt")
public void testClassCanNotBeCastedToVoid() throws Exception {
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")
@@ -5228,6 +5228,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testAllFilesPresentInFir() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("classCanNotBeCastedToVoid.kt")
public void testClassCanNotBeCastedToVoid() throws Exception {
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")