From fd05ab1ef85a9c43d45583b875aac51cf344fdc4 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 4 May 2021 19:18:30 +0200 Subject: [PATCH] Fixed bug with `parseStruct`, now it doesn't return null --- source/tlang/compiler/parsing/core.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index 15d0627..1dbf9c0 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -337,6 +337,10 @@ public final class Parser } + + /* TODO: Remove this and actually impleent struct's body parsing */ + generatedStruct = new Struct(structName); + /* Expect closing brace (sanity) */ expect(SymbolType.CCURLY, getCurrentToken());