mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
21 lines
216 B
Text
21 lines
216 B
Text
|
|
enum FOO
|
||
|
|
FOO_A,
|
||
|
|
FOO_B,
|
||
|
|
FOO_C
|
||
|
|
endenum
|
||
|
|
|
||
|
|
function bar( a := FOO_B )
|
||
|
|
print( "a=" + a );
|
||
|
|
endfunction
|
||
|
|
|
||
|
|
bar(1);
|
||
|
|
bar(2);
|
||
|
|
bar();
|
||
|
|
bar(FOO_C);
|
||
|
|
/**** Expected Output Begins: *****
|
||
|
|
1
|
||
|
|
2
|
||
|
|
1
|
||
|
|
2
|
||
|
|
***** Expected Output Ends ****/
|