aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-23 15:55:34 +0200
committerBad Diode <bd@badd10de.dev>2024-06-23 15:55:34 +0200
commitc6fd7856bfe5dd0567f672d0d1a70a3b698feaa4 (patch)
tree967afe5d560bbf8b9c64ab408cb66e66a6146bc7 /tests
parent35eaad923d3ef598d6f9ed6925fd65c6a311896b (diff)
downloadbdl-c6fd7856bfe5dd0567f672d0d1a70a3b698feaa4.tar.gz
bdl-c6fd7856bfe5dd0567f672d0d1a70a3b698feaa4.zip
Add more expressions to type inference method
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index e574a73..d1effe4 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -3,6 +3,10 @@
3let a:int = (1 + 2 * 2) / 2 3let a:int = (1 + 2 * 2) / 2
4let b = 1 4let b = 1
5let c = b 5let c = b
6let d = 1 + 2 * 4
7let e = 1 <= 2
8let booleans = !true && false || (1 <= 2)
9let bits = 0xff & 0b00001111
6 10
7; enum test { 11; enum test {
8; a = 1 12; a = 1