From f024bedaaa0dd7a1782e81ce37289469582f81f4 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 4 Jun 2021 12:04:58 +0200 Subject: [PATCH] WIP: Need to add support for the `new` keyword --- source/tlang/compiler/typecheck/core.d | 3 +++ source/tlang/testing/basic1_typedeclrationchecking.t | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/tlang/compiler/typecheck/core.d b/source/tlang/compiler/typecheck/core.d index 9b7d247..f718180 100644 --- a/source/tlang/compiler/typecheck/core.d +++ b/source/tlang/compiler/typecheck/core.d @@ -116,6 +116,9 @@ public final class TypeChecker * valid type names * * This is called on a Container + * + * TODO: Should we also do expression parsing or rather do another call for that + * mmmmh */ private void checkTypedEntitiesTypeNames(Container c) { diff --git a/source/tlang/testing/basic1_typedeclrationchecking.t b/source/tlang/testing/basic1_typedeclrationchecking.t index 8948ac0..07da25f 100644 --- a/source/tlang/testing/basic1_typedeclrationchecking.t +++ b/source/tlang/testing/basic1_typedeclrationchecking.t @@ -29,7 +29,7 @@ protected Them.Container fsdhsdj; class kl { - Shekshi l; + Shekshi l = new Shekshi(); kl o; }