diff --git a/source/tlang/compiler/typecheck/core.d b/source/tlang/compiler/typecheck/core.d index afb92824..47c0d63e 100644 --- a/source/tlang/compiler/typecheck/core.d +++ b/source/tlang/compiler/typecheck/core.d @@ -334,10 +334,14 @@ public final class TypeChecker gprintln("VarExp: "~g.getName()); gprintln(g.getContext()); auto gVar = cast(TypedEntity)resolver.resolveBest(g.getContext().getContainer(), g.getName()); + gprintln("gVar nullity?: "~to!(string)(gVar is null)); + + /* TODO; Above crashes when it is a container, eish baba - from dependency generation with `TestClass.P.h` */ string variableName = resolver.generateName(modulle, gVar); gprintln("VarName: "~variableName); + gprintln("Halo"); gprintln("Yaa, it's rewind time1: "~to!(string)(gVar.getType())); gprintln("Yaa, it's rewind time2: "~to!(string)(gVar.getContext())); diff --git a/source/tlang/compiler/typecheck/dependency/core.d b/source/tlang/compiler/typecheck/dependency/core.d index 0adb5049..916c5c8d 100644 --- a/source/tlang/compiler/typecheck/dependency/core.d +++ b/source/tlang/compiler/typecheck/dependency/core.d @@ -50,6 +50,11 @@ public final class Context { return container; } + + public override string toString() + { + return "Context [ContPtr(valid?): "~to!(string)(!(container is null))~", InitScope: "~to!(string)(initScope)~"]"; + } } /**