Skip to content

Commit 5e28d29

Browse files
committed
fix: update references in the global scope
The mutation assignment syntax was update references in the local scope, however this is incorrect since we have moved all references to the global scope in a prior change.
1 parent f46a0c4 commit 5e28d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

KLR/Trace/NKI.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ partial def mutate (x e : Expr) : Trace Unit :=
316316
let i : Nat <- fromNKI? i
317317
let e <- expr e
318318
if h : i < a.size then
319-
extend name (.list (a.set i e h))
319+
extend_global name (.list (a.set i e h))
320320
return ()
321321
else throw "index out of range"
322322
else throw "internal error: expecting list literal"
@@ -326,7 +326,7 @@ partial def mutate (x e : Expr) : Trace Unit :=
326326
let i : String <- fromNKI? i
327327
let e <- expr e
328328
let a := AA.insert a i e
329-
extend name (.dict (AA.insert a i e))
329+
extend_global name (.dict (AA.insert a i e))
330330
return ()
331331
else throw "internal error: expecting dictionary literal"
332332
| r@(.ref _ (.object cls)) =>

0 commit comments

Comments
 (0)