aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/shedlang/compiler/stackir
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-14 18:29:10 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-14 18:29:10 +0100
commit78c3d52bc16fefbe35dbceb778f52618078b0854 (patch)
tree3857e0897d02cea9e60dc1b4eb8cd721358bd3d0 /src/test/java/org/shedlang/compiler/stackir
parentd267088721d40065b1e71521127073b471e84db5 (diff)
Use field names on namespace node in StackCompiler
Diffstat (limited to 'src/test/java/org/shedlang/compiler/stackir')
-rw-r--r--src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java b/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java
index 32ff72ba..1ed17236 100644
--- a/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java
+++ b/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java
@@ -27,7 +27,8 @@ public class StackCompilerNamespaceTests {
.addNamedParam("y", Typed.typeLevelReference("Int", Types.INT))
.addStatement(Typed.expressionStatement(Typed.stringLiteral("hello")))
.build()
- )
+ ),
+ List.of("f")
);
var instructions = StackCompiler.compileNamespace(node);