when calling function stored in local variable as unary operation, don't forget to push function instance (KT-1953)

I'm sure that there are similar cases that still don't work;  please let me know if you find any
#KT-1953 fixed
This commit is contained in:
Dmitry Jemerov
2012-06-06 17:17:44 +02:00
parent 98c9569216
commit 5b987ccc15
4 changed files with 54 additions and 13 deletions
@@ -96,4 +96,14 @@ public class ExtensionFunctionsTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.BUILTINS);
blackBoxFile("regressions/kt1290.kt");
}
public void testKt1953() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1953.kt");
}
public void testKt1953Class() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1953_class.kt");
}
}