diff --git a/source/tlang/compiler/parser.d b/source/tlang/compiler/parser.d index 85bfbb1..5c7af7b 100644 --- a/source/tlang/compiler/parser.d +++ b/source/tlang/compiler/parser.d @@ -275,7 +275,8 @@ public final class Parser /* If it is a class definition */ else if (symbol == SymbolType.CLASS) { - parseClass(); + /* Parse the class and add its statements */ + statements ~= parseClass(); } /* Error out */ else