test for already fixed KT-1611

This commit is contained in:
Dmitry Jemerov
2012-06-08 16:44:10 +02:00
parent f05dc65f2c
commit 5c21564b05
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
fun box(): String {
return Foo().doBar("OK")
}
class Foo() {
val bar : (str : String) -> String = { it }
fun doBar(str : String): String {
return bar(str);
}
}
@@ -416,4 +416,9 @@ public class ClassGenTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1976.kt");
}
public void testKt1611() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1611.kt");
}
}