[math] check that overriding operators fails
This commit is contained in:
parent
8687fb3481
commit
f8928affc2
|
@ -24,4 +24,10 @@
|
|||
;; -- dividing by zero => caught statically
|
||||
(/: 1 1 0)
|
||||
(/: 1 1 (+: 4 -2 -2))
|
||||
;; -- redefine ops => fail
|
||||
(ann (let ([+: (lambda (x y) "hello")]) (+: 1 1)) Integer)
|
||||
(ann (let ([-: (lambda (x y) "hello")]) (-: 1 1)) Integer)
|
||||
(ann (let ([/: (lambda (x y) "hello")]) (/: 1 1)) Integer)
|
||||
(ann (let ([*: (lambda (x y) "hello")]) (*: 1 1)) Integer)
|
||||
(ann (let ([expt: (lambda (x y) "hello")]) (expt: 1 1)) Integer)
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue
Block a user