polserver/testsuite/escript/func/func011-default-parameter-bare-function-call.src
Eric Swanson 3ffb02397f
New compiler: Disallow 0-parameter system calls as parameter defaults (#297)
There is one part that differs from const declarations: 0-parameter function calls are allowed (by accident) as const values, but not for default parameter values.
2020-09-10 01:39:57 -07:00

9 lines
104 B
Text

use math;
// "Only simple operands..."
function foo(x := ConstPi())
print(x);
endfunction
foo();