diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index e88fcad1..c69044a2 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -1281,9 +1281,6 @@ public final class Parser { Clazz clazz = parseClass(); - /* All classes declared at the Module level are static by default */ - clazz.setModifierType(InitScope.STATIC); - /* Add the class definition to the program */ modulle.addStatement(clazz); } @@ -1292,9 +1289,6 @@ public final class Parser { Struct ztruct = parseStruct(); - /* All structs declared at the Module level are static by default */ - ztruct.setModifierType(InitScope.STATIC); - /* Add the struct definition to the program */ modulle.addStatement(ztruct); } diff --git a/todo1.md b/todo1.md index 4798fa4c..d72c8aa9 100644 --- a/todo1.md +++ b/todo1.md @@ -25,8 +25,10 @@ TODO List ## Typechecking - [ ] Dependency generation - - [ ] Classes declared at the module level should be marked as static in `parse()` (not in `parseBody()` <- this is a note we don't do this) - - [ ] Structs declared at the module level should be marked as static in `parse()` (not in `parseBody()` <- this is a note we don't do this) + - [ ] Classes declared at the module level should be ~~marked~~ seen as static in `parse()` (not in `parseBody()` <- this is a note we don't do this) + - [ ] Structs declared at the module level should be marked as ~~marked~~ seen in `parse()` (not in `parseBody()` <- this is a note we don't do this) + - [ ] Functions (?) declared at the module level should be ~~marked~~ seen as static in `parse()` (not in `parseBody()` <- this is a note we don't do this) + - [ ] Variables declared at the module level should be marked as ~~marked~~ seen in `parse()` (not in `parseBody()` <- this is a note we don't do this) # Future