From 9cf1a181a2c9a63f29db56e23efc256ab5e96c69 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 4 Jun 2021 11:57:25 +0200 Subject: [PATCH] TIme for expression checking --- source/tlang/compiler/typecheck/core.d | 2 +- source/tlang/testing/basic1_typedeclrationchecking.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;