mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
17 lines
549 B
Text
17 lines
549 B
Text
// There was a bug where module function parameter name tokens would be
|
|
// converted to be userfunction names, if there was a userfunction
|
|
// with the same name as the parameter.
|
|
//
|
|
// In this test, "print" in the basicio module names
|
|
// its parameter "anything", but we should still
|
|
// be able to use that name for a function,
|
|
// and still pass the argument by name.
|
|
//
|
|
function anything( s )
|
|
return "the argument value is " + s;
|
|
endfunction
|
|
|
|
program print_anything()
|
|
var s := anything("as expected");
|
|
print( anything := s );
|
|
endprogram
|