diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-23 15:55:34 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-23 15:55:34 +0200 |
commit | c6fd7856bfe5dd0567f672d0d1a70a3b698feaa4 (patch) | |
tree | 967afe5d560bbf8b9c64ab408cb66e66a6146bc7 /tests | |
parent | 35eaad923d3ef598d6f9ed6925fd65c6a311896b (diff) | |
download | bdl-c6fd7856bfe5dd0567f672d0d1a70a3b698feaa4.tar.gz bdl-c6fd7856bfe5dd0567f672d0d1a70a3b698feaa4.zip |
Add more expressions to type inference method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/semantics.bad | 4 |
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 @@ | |||
3 | let a:int = (1 + 2 * 2) / 2 | 3 | let a:int = (1 + 2 * 2) / 2 |
4 | let b = 1 | 4 | let b = 1 |
5 | let c = b | 5 | let c = b |
6 | let d = 1 + 2 * 4 | ||
7 | let e = 1 <= 2 | ||
8 | let booleans = !true && false || (1 <= 2) | ||
9 | let bits = 0xff & 0b00001111 | ||
6 | 10 | ||
7 | ; enum test { | 11 | ; enum test { |
8 | ; a = 1 | 12 | ; a = 1 |