Skip to content

Commit

Permalink
FIX: word binding inside maps when construction syntax is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Apr 2, 2024
1 parent 9a90e20 commit 583866b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/c-frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@
}
}
}
else if (ANY_BLOCK(value) && (mode & BIND_DEEP))
else if ((ANY_BLOCK(value) || IS_MAP(value)) && (mode & BIND_DEEP))
Bind_Block_Words(frame, VAL_BLK_DATA(value), mode);
else if ((IS_FUNCTION(value) || IS_CLOSURE(value)) && (mode & BIND_FUNC))
Bind_Block_Words(frame, BLK_HEAD(VAL_FUNC_BODY(value)), mode);
Expand Down
8 changes: 8 additions & 0 deletions src/tests/units/map-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ Rebol [
--assert 2 = m/b
--assert empty? #[]

--test-- "word binding inside maps"
;@@ https://github.com/Oldes/Rebol-issues/issues/2593
a: 1
m1: make map! [k a]
m2: #[k a]
--assert 1 = try [get m1/k]
--assert 1 = try [get m2/k]

--test-- "case sensitivity"
;@@ https://github.com/Oldes/Rebol-issues/issues/1153
m: #[
Expand Down

0 comments on commit 583866b

Please sign in to comment.