Skip to content

Commit 5ca72c5

Browse files
authored
[Dana] Semantically Erroneous Program (#68)
Add a semantically erroneous program with all sorts of errors.
1 parent a38c684 commit 5ca72c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def main
2+
var x y is int
3+
var s is byte[10]
4+
5+
x := z # Error: z is not declared
6+
return: x + s # Error: cannot add int and byte[]
7+
break # Error: break outside loop
8+
continue # Error: continue outside loop
9+
callMe: 10 # Error: callMe is not declared
10+
return: foo(1, 2) # Error: foo is not defined

0 commit comments

Comments
 (0)