test for fixed KT-1721
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
class T(val f : () -> Any?) {
|
||||||
|
fun call() : Any? = f()
|
||||||
|
}
|
||||||
|
fun box(): String {
|
||||||
|
return T({ "OK" }).call() as String
|
||||||
|
}
|
||||||
@@ -412,6 +412,11 @@ public class ClassGenTest extends CodegenTestCase {
|
|||||||
blackBoxFile("regressions/kt1726.kt");
|
blackBoxFile("regressions/kt1726.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testKt1721() {
|
||||||
|
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
|
||||||
|
blackBoxFile("regressions/kt1721.kt");
|
||||||
|
}
|
||||||
|
|
||||||
public void testKt1976() {
|
public void testKt1976() {
|
||||||
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
|
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
|
||||||
blackBoxFile("regressions/kt1976.kt");
|
blackBoxFile("regressions/kt1976.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user