WIP: Name resoltuion

parser_exception_before
Tristan B. Kildaire 2021-03-29 21:47:30 +02:00
parent 0433bccc00
commit adc9457a0f
3 changed files with 4 additions and 3 deletions

View File

@ -732,7 +732,7 @@ public class VariableAssignment
{
private Expression expression;
this(Expression)
this(Expression expression)
{
this.expression = expression;
}
@ -772,6 +772,8 @@ public class VariableExpression : IdentExpression
{
string type;
/* Variables can't get look ahead sort of */
/* Get all names and see if i am in it firstly */
Entity entity = typeChecker.isValidEntity(startingPoint, getName());

View File

@ -145,7 +145,7 @@ public final class TypeChecker
}
else
{
declareName(path~variable.getName());
// declareName(path~variable.getName());
}
}
}

View File

@ -1,7 +1,6 @@
module bababoioey;
int x;
int x;
ubyte y;