The new struct FileOptions allows for fine grained control over language feature.
However, it didn't respect FileOptions.TopLevelControl flag, as the only way to actually allow if/for/while in the top level context was to enable FileOptions.GlobalReassign flag.
The new struct
FileOptions
allows for fine grained control over language feature.However, it didn't respect
FileOptions.TopLevelControl
flag, as the only way to actually allow if/for/while in the top level context was to enableFileOptions.GlobalReassign
flag.