We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a38c684 commit 5ca72c5Copy full SHA for 5ca72c5
dana/programs-erroneous/semantic_error.dana
@@ -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