From d7cd4df736d69bff0b25003495b6b30794a78562 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 9 Apr 2021 15:56:15 +0200 Subject: [PATCH] Added TODO Added test case --- source/tlang/compiler/typecheck/core.d | 5 ++++- source/tlang/testing/classTest1.t | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 source/tlang/testing/classTest1.t diff --git a/source/tlang/compiler/typecheck/core.d b/source/tlang/compiler/typecheck/core.d index 0e750bc..d2a99ac 100644 --- a/source/tlang/compiler/typecheck/core.d +++ b/source/tlang/compiler/typecheck/core.d @@ -48,6 +48,9 @@ public final class TypeChecker public void dependencyCheck() { /* TODO: Implement me */ + checkClassInherit(modulle); + + /* TODO: Process class ? vars funcs ?*/ } public void beginCheck() @@ -62,7 +65,7 @@ public final class TypeChecker /* TODO: Now that everything is defined, no collision */ /* TODO: Do actual type checking and declarations */ - checkClassInherit(modulle); + dependencyCheck(); } private void checkClassInherit(Container c) diff --git a/source/tlang/testing/classTest1.t b/source/tlang/testing/classTest1.t new file mode 100644 index 0000000..8f86f64 --- /dev/null +++ b/source/tlang/testing/classTest1.t @@ -0,0 +1,11 @@ +module classTest; + +class A : B +{ + +} + +class B +{ + +} \ No newline at end of file