diff --git a/source/tlang/compiler/typecheck/core.d b/source/tlang/compiler/typecheck/core.d index 7a332ff..9b7d247 100644 --- a/source/tlang/compiler/typecheck/core.d +++ b/source/tlang/compiler/typecheck/core.d @@ -156,7 +156,7 @@ public final class TypeChecker if(cast(Number)type) { /* TODO: Mark it as ready-for-reference */ - type.mark(); + } else { diff --git a/source/tlang/testing/basic1_typedeclrationchecking.t b/source/tlang/testing/basic1_typedeclrationchecking.t index 1381dfc..8948ac0 100644 --- a/source/tlang/testing/basic1_typedeclrationchecking.t +++ b/source/tlang/testing/basic1_typedeclrationchecking.t @@ -1,7 +1,7 @@ module myModule; -int x; +int x =1; ubyte y; int a;