mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Move files
This commit is contained in:
parent
fd5e1c59ec
commit
2a68c89140
2 changed files with 0 additions and 0 deletions
|
@ -1,6 +0,0 @@
|
|||
v = ![]
|
||||
v.push! 1
|
||||
|
||||
w = v
|
||||
print! w
|
||||
print! v # this should cause a MoveError
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue