resolve function literal expression (as parameter) after resolve call

(therefore only once)
while resolve use FAKE_FUNCTION_TYPE as type
for function literal (which is a subtype/supertype for any function type)
This commit is contained in:
Svetlana Isakova
2012-11-20 17:35:48 +04:00
parent 473a969598
commit 39450dd954
8 changed files with 280 additions and 45 deletions
@@ -3378,6 +3378,16 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/resolve"), "kt", true);
}
@TestMetadata("resolveWithFunctionLiterals.kt")
public void testResolveWithFunctionLiterals() throws Exception {
doTest("compiler/testData/diagnostics/tests/resolve/resolveWithFunctionLiterals.kt");
}
@TestMetadata("resolveWithFunctionLiteralsOverload.kt")
public void testResolveWithFunctionLiteralsOverload() throws Exception {
doTest("compiler/testData/diagnostics/tests/resolve/resolveWithFunctionLiteralsOverload.kt");
}
@TestMetadata("resolveWithGenerics.kt")
public void testResolveWithGenerics() throws Exception {
doTest("compiler/testData/diagnostics/tests/resolve/resolveWithGenerics.kt");