polserver/testsuite/escript/errors/errors008-var-same-name-as-user-function.src
Eric Swanson e6d9f78f2a
Disallow var names that match an unreferenced function. (#300)
Remember known user function names when they are declared, rather than when they are referenced.
2020-09-11 01:16:24 -07:00

8 lines
147 B
Text

// reported in https://forums.polserver.com/viewtopic.php?f=54&t=6140
function xyz()
endfunction
if (1)
var xyz := 3;
print( xyz );
endif