Move files

This commit is contained in:
Shunsuke Shibayama 2022-08-19 08:52:10 +09:00
parent fd5e1c59ec
commit 2a68c89140
2 changed files with 0 additions and 0 deletions

View file

@ -1,6 +0,0 @@
v = ![]
v.push! 1
w = v
print! w
print! v # this should cause a MoveError

View file

@ -1,9 +0,0 @@
if True, () -> log "hello"
if! True, () => print! "hello"
# if True, () => print! "hello" # this should cause a type error
if True, () ->
_x = "aaa" + input!() # this should cause an effect error
print! "hello" # this should cause an effect error
f x: Int = log x
g x: Int = print! x # this should cause an effect error