EngineHub / EngineHub/CommandHelper

Incorrect [Using undefined variable] error on unassigned variable declarations in autoconcat (non-strict mode)

Abierto
#1,179 5 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Java
Estrellas
128
Forks
70
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When having variable declarations in a script where that variable might never be assigned to, then an incorrect `Using undefined variable: @var` runtime error is given if that declaration is inside an autoconcat.
Example code:
```
string @var;
msg();
```

Problem:
__autoconcat__() gets the value of declaration `string @var`, causing this runtime error.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.