You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mei 03, 2023 8:59:51 P.M. com.laytonsmith.core.Static LogDebug
SEVERE: [ERROR][runtime] @a was already defined at C:\Program Files\MethodScript\Interpreter:1.1 but is being redefined.
Expected behavior is that @a can be typed without runtime error. Do note that program flow/execution is unaffected by this 'error'.
Note that this runtime error shows once per inner foreach execution for nested foreach calls:
mei 03, 2023 9:08:43 P.M. com.laytonsmith.core.Static LogDebug
SEVERE: [ERROR][runtime] @a was already defined at C:\Program Files\MethodScript\Interpreter:1.1 but is being redefined.
mei 03, 2023 9:08:43 P.M. com.laytonsmith.core.Static LogDebug
SEVERE: [ERROR][runtime] @b was already defined at C:\Program Files\MethodScript\Interpreter:1.34 but is being redefined.
mei 03, 2023 9:08:43 P.M. com.laytonsmith.core.Static LogDebug
SEVERE: [ERROR][runtime] @b was already defined at C:\Program Files\MethodScript\Interpreter:1.37 but is being redefined.
mei 03, 2023 9:08:43 P.M. com.laytonsmith.core.Static LogDebug
SEVERE: [ERROR][runtime] @b was already defined at C:\Program Files\MethodScript\Interpreter:1.37 but is being redefined.
MethodScript version: Uncertain, with strict mode and static analysis enabled. MethodScript jar was last changed on 03-04-2023.
The text was updated successfully, but these errors were encountered:
Seems to occur when 2 foreach functions in a row use the same typed variable name, or when using nested foreach functions with a typed variable in the inner loop. (strict mode/static analysis don't have to be on)
Code
or
or
Results in
Expected behavior is that
@a
can be typed without runtime error. Do note that program flow/execution is unaffected by this 'error'.Note that this runtime error shows once per inner
foreach
execution for nestedforeach
calls:Results in
MethodScript version: Uncertain, with strict mode and static analysis enabled. MethodScript jar was last changed on 03-04-2023.
The text was updated successfully, but these errors were encountered: