diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-11-20 19:55:13 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-11-20 19:55:13 +0000 |
| commit | 33888c1bac8a1e58fae55f275a0d0eafd16144c5 (patch) | |
| tree | db148f62366b4b84fab50f4f6b19ffa5f2e09f05 /src/test/java/org/shedlang/compiler/stackir | |
| parent | 992336f41a4f6881f2a43e61e479f66e062609fd (diff) | |
Introduce explicit notion of a BoundVariable
Diffstat (limited to 'src/test/java/org/shedlang/compiler/stackir')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/stackir/StackCompilerValTests.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/org/shedlang/compiler/stackir/StackCompilerValTests.java b/src/test/java/org/shedlang/compiler/stackir/StackCompilerValTests.java index b72055fd..4d0e1451 100644 --- a/src/test/java/org/shedlang/compiler/stackir/StackCompilerValTests.java +++ b/src/test/java/org/shedlang/compiler/stackir/StackCompilerValTests.java @@ -1,6 +1,7 @@ package org.shedlang.compiler.stackir; import org.junit.jupiter.api.Test; +import org.shedlang.compiler.ast.typed.BoundVariable; import org.shedlang.compiler.ast.typed.Typed; import org.shedlang.compiler.types.Types; @@ -53,7 +54,7 @@ public class StackCompilerValTests { Typed.val("x", Typed.intLiteral(11)), Typed.expressionStatement(Typed.reference("x")) ), - List.of("x") + List.of(BoundVariable.immutable("x")) ) ) ), @@ -62,7 +63,7 @@ public class StackCompilerValTests { Typed.val("x", Typed.intLiteral(12)), Typed.expressionStatement(Typed.reference("x")) ), - List.of("x") + List.of(BoundVariable.immutable("x")) ), Types.INT )), |
