test for KT-1247 (duplicate of KT-1918)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun f(a : Int?, b : Int.(Int)->Int) = a?.b(1)
|
||||
|
||||
fun box(): String {
|
||||
val x = f(1) { this+it+2 }
|
||||
return if (x == 4) "OK" else "fail"
|
||||
}
|
||||
@@ -392,6 +392,11 @@ public class ClassGenTest extends CodegenTestCase {
|
||||
blackBoxFile("regressions/kt1918.kt");
|
||||
}
|
||||
|
||||
public void testKt1247() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
|
||||
blackBoxFile("regressions/kt1247.kt");
|
||||
}
|
||||
|
||||
public void testKt1980() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
|
||||
blackBoxFile("regressions/kt1980.kt");
|
||||
|
||||
Reference in New Issue
Block a user