when calling extension function, correctly put receiver on top of stack if it was generated before the extension function object (KT-1918)

This commit is contained in:
Dmitry Jemerov
2012-06-02 19:50:14 +02:00
parent 46bc7cf12f
commit ba9c3d73e7
3 changed files with 59 additions and 5 deletions
@@ -386,4 +386,9 @@ public class ClassGenTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("classes/resolveOrder.jet");
}
public void testKt1918() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1918.kt");
}
}