diff --git a/dana/programs-erroneous/semantic_error.dana b/dana/programs-erroneous/semantic_error.dana new file mode 100644 index 0000000..4f8e904 --- /dev/null +++ b/dana/programs-erroneous/semantic_error.dana @@ -0,0 +1,10 @@ +def main + var x y is int + var s is byte[10] + + x := z # Error: z is not declared + return: x + s # Error: cannot add int and byte[] + break # Error: break outside loop + continue # Error: continue outside loop + callMe: 10 # Error: callMe is not declared + return: foo(1, 2) # Error: foo is not defined