mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
10 lines
215 B
Text
10 lines
215 B
Text
var a := struct { x := 2, y := 3 };
|
|
|
|
function foo()
|
|
// There was a bug where the := was generated already consuming itself,
|
|
// but return consumes it here.
|
|
return a.x := a.y;
|
|
endfunction
|
|
|
|
print(foo());
|
|
|