From 33888c1bac8a1e58fae55f275a0d0eafd16144c5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 20 Nov 2023 19:55:13 +0000 Subject: Introduce explicit notion of a BoundVariable --- .../java/org/shedlang/compiler/stackir/StackCompilerValTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/shedlang/compiler/stackir') 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 )), -- cgit v1.2.3