Skip to content

Commit 426bc8c

Browse files
committed
[Dana] Add erroneous program using byte variable as a condition
1 parent d1366ed commit 426bc8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Error: 'if' condition is not boolean (byte variable used as condition)
2+
3+
def main
4+
var b is byte
5+
b := true
6+
if b:
7+
writeString: "erroneous"

0 commit comments

Comments
 (0)