test for already fixed KT-1611
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user