Closed glx22 closed 11 months ago
@glx22 Is it possible to add a simple regression test case for this?
I'm not even sure it's possible to actually see the effect of this PR without more changes. If I use https://github.com/OpenTTD/nml/pull/302/commits/5a5b4818a0e180b05dbbd0ef368aada88d992ba1 (and a named param for house id in 030) without this PR I get "unrecognized identifier", with the PR it becomes "Expected a compile-time integer constant"
Named parameters are registered during
pre_process
step, which can be too late. Move the registration toregister_names
step.