KT-1739: test for obsolete issue

This commit is contained in:
Alex Tkachman
2012-08-04 22:58:33 +03:00
parent fcab204459
commit 9819095451
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,11 @@
public class RunnableFunctionWrapper(val f : () -> Unit) : Runnable {
public override fun run() {
f()
}
}
fun box() : String {
var res = ""
RunnableFunctionWrapper({ res = "OK" }).run()
return res
}
@@ -129,6 +129,10 @@ public class FunctionGenTest extends CodegenTestCase {
blackBoxFile("regressions/kt2280.kt");
}
public void testKt1739() {
blackBoxFile("regressions/kt1739.kt");
}
public static class WithJavaFunctionGenTest extends CodegenTestCase {
private void blackBoxFileWithJava(@NotNull String ktFile) throws Exception {
File javaClassesTempDirectory = new File(FileUtil.getTempDirectory(), "java-classes");