more tests in ScriptGenTest
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
val x = 12
|
||||
|
||||
fun foo(y: Int) = x + y
|
||||
|
||||
foo(33)
|
||||
|
||||
// expected: 45
|
||||
@@ -42,6 +42,10 @@ public class ScriptGenTest extends CodegenTestCase {
|
||||
// TODO: check function is visible as instance field (it is currently not)
|
||||
}
|
||||
|
||||
public void testTopLevelFunctionClosure() {
|
||||
blackBoxFile("script/topLevelFunctionClosure.ktscript");
|
||||
}
|
||||
|
||||
public void testScriptParameter() {
|
||||
blackBoxFile("script/parameter.ktscript");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user