about summary refs log tree commit diff
path: root/pkg/lang/vm/value/value.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/value/value.go')
-rw-r--r--pkg/lang/vm/value/value.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/lang/vm/value/value.go b/pkg/lang/vm/value/value.go
index e932ed3..daa17dd 100644
--- a/pkg/lang/vm/value/value.go
+++ b/pkg/lang/vm/value/value.go
@@ -2,7 +2,7 @@ package value
 
 type Value struct {
 	t Type
-	d any
+	d Data
 }
 
 func NewInt(x int64) Value {
@@ -27,7 +27,7 @@ func NewBool(b bool) Value {
 
 func NewArray(arr []Value) Value {
 	t := Type{Kind: ArrayType}
-	return Value{t: t, d: ArrayData(arr)}
+	return Value{t: t, d: ArrayData{arr: &arr}}
 }
 
 func NewNull() Value {
@@ -47,6 +47,6 @@ func (v Value) Type() Type {
 	return v.t
 }
 
-func (v Value) Data() any {
+func (v Value) Data() Data {
 	return v.d
 }