diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-23 14:19:54 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-23 14:19:54 +0200 |
commit | 35eaad923d3ef598d6f9ed6925fd65c6a311896b (patch) | |
tree | 2b448435c15f9e014a59134312887c6e1a1a9c94 /tests/semantics.bad | |
parent | b9397e53034b08dd9ffb69c94b5283dc46863d33 (diff) | |
download | bdl-35eaad923d3ef598d6f9ed6925fd65c6a311896b.tar.gz bdl-35eaad923d3ef598d6f9ed6925fd65c6a311896b.zip |
Implement basic type inference for numbers and symbols
Diffstat (limited to 'tests/semantics.bad')
-rw-r--r-- | tests/semantics.bad | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad index ff024f7..e574a73 100644 --- a/tests/semantics.bad +++ b/tests/semantics.bad | |||
@@ -1,5 +1,9 @@ | |||
1 | ; let a:int = (1 + 2 * 2) / 2 | 1 | ; let a:f32 = (1.0 + 2.0 * 2.0) / 2.0 |
2 | let a:f32 = (1.0 + 2.0 * 2.0) / 2.0 | 2 | |
3 | let a:int = (1 + 2 * 2) / 2 | ||
4 | let b = 1 | ||
5 | let c = b | ||
6 | |||
3 | ; enum test { | 7 | ; enum test { |
4 | ; a = 1 | 8 | ; a = 1 |
5 | ; b | 9 | ; b |