diff --git a/source/tlang/compiler/symbols.d b/source/tlang/compiler/symbols.d index 28e8490..11e0dc5 100644 --- a/source/tlang/compiler/symbols.d +++ b/source/tlang/compiler/symbols.d @@ -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()); diff --git a/source/tlang/compiler/typecheck.d b/source/tlang/compiler/typecheck.d index 3fff71a..0448037 100644 --- a/source/tlang/compiler/typecheck.d +++ b/source/tlang/compiler/typecheck.d @@ -145,7 +145,7 @@ public final class TypeChecker } else { - declareName(path~variable.getName()); + // declareName(path~variable.getName()); } } } diff --git a/source/tlang/testing/basic1.t b/source/tlang/testing/basic1.t index 1a2edcf..d8e2ec7 100644 --- a/source/tlang/testing/basic1.t +++ b/source/tlang/testing/basic1.t @@ -1,7 +1,6 @@ module bababoioey; -int x; int x; ubyte y;