HF RL Explorer

Bug: Struct and enum definitions are incorrectly allowed inside function bodies

Bug: Struct and enum definitions are incorrectly allowed inside function bodies: a task in LegoFlow-SWE (Harbor dataset). The AGS script compiler currently accepts struct and enum type definitions inside function bodies. This allows locally‑declared types to be referenced in other functions…

The task

The AGS script compiler currently accepts `struct` and `enum` type definitions inside function bodies. This allows locally‑declared types to be referenced in other functions, breaking scoping rules.

Part of Lego-X/LegoFlow-SWE.