diff options
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/typechecker/DeclaredVariables.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/typechecker/DeclaredVariables.java b/src/main/java/org/shedlang/compiler/typechecker/DeclaredVariables.java index b12061f8..a6cfde24 100644 --- a/src/main/java/org/shedlang/compiler/typechecker/DeclaredVariables.java +++ b/src/main/java/org/shedlang/compiler/typechecker/DeclaredVariables.java @@ -73,7 +73,11 @@ class DeclaredVariables { )); case UntypedStructDefinitionNode struct -> - throw new UnsupportedOperationException("TODO"); + variables.plus(new DeclaredVariable( + struct.name(), + VariableType.CONSTANT, + struct.source() + )); }; } |
