japl/tests/japl/defaults.jpl

12 lines
130 B
Plaintext

//[Test: defaults]
//[skip]
//[source:mixed]
var a = 3;
fun test(b = a) {
print (b);
}
a = 9;
test();//stdout:3
//[end]
//[end]