Test that assigning to a builtin fails
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
parent
1599f29dff
commit
9bff606ee9
@ -551,3 +551,9 @@ def test_defn():
|
||||
cant_compile("(defn \"hy\" [] 1)")
|
||||
cant_compile("(defn :hy [] 1)")
|
||||
can_compile("(defn &hy [] 1)")
|
||||
|
||||
|
||||
def test_setv_builtins():
|
||||
"""Ensure that assigning to a builtin fails"""
|
||||
cant_compile("(setv nil 42)")
|
||||
cant_compile("(defn get [&rest args] 42)")
|
||||
|
Loading…
Reference in New Issue
Block a user