File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 197
197
!IS_BLOCK (def )
198
198
|| (len = VAL_LEN (def )) < 2
199
199
|| !IS_BLOCK (spec = VAL_BLK (def ))
200
+ || type == REB_ACTION //@@ https://github.com/rebol/rebol-issues/issues/1051
201
+ || type == REB_NATIVE
202
+ || type == REB_OP // may be implemented later!
200
203
) return FALSE;
201
204
202
205
body = VAL_BLK_SKIP (def , 1 );
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ Rebol [
22
22
fce : func [ a [integer! ]] [probe a]
23
23
--assert [probe a] = body-of :fce
24
24
25
+ --test-- "invalid MAKE"
26
+ ;@@ https://github.com/rebol/rebol-issues/issues/1052
27
+ --assert error? try [make :read [[][]]]
28
+ --assert error? try [make action! [[][]]]
29
+ --assert error? try [make native! [[][]]]
30
+ --assert error? try [make op! [[][]]]
31
+
25
32
===end-group===
26
33
27
34
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments