failing test
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
fun box() : String {
|
||||||
|
val cl = 39
|
||||||
|
return if (sum(200, { cl }) == 2) "OK" else "FAIL"
|
||||||
|
}
|
||||||
|
|
||||||
|
fun sum(arg:Int, f : {() : Int}) : Int {
|
||||||
|
return arg + f()
|
||||||
|
}
|
||||||
@@ -23,4 +23,8 @@ public class ClosuresGenTest extends CodegenTestCase {
|
|||||||
public void testExtensionClosure() throws Exception {
|
public void testExtensionClosure() throws Exception {
|
||||||
blackBoxFile("classes/extensionClosure.jet");
|
blackBoxFile("classes/extensionClosure.jet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testEnclosingLocalVariable() throws Exception {
|
||||||
|
blackBoxFile("classes/enclosingLocalVariable.jet");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user