aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-23 14:19:54 +0200
committerBad Diode <bd@badd10de.dev>2024-06-23 14:19:54 +0200
commit35eaad923d3ef598d6f9ed6925fd65c6a311896b (patch)
tree2b448435c15f9e014a59134312887c6e1a1a9c94 /tests
parentb9397e53034b08dd9ffb69c94b5283dc46863d33 (diff)
downloadbdl-35eaad923d3ef598d6f9ed6925fd65c6a311896b.tar.gz
bdl-35eaad923d3ef598d6f9ed6925fd65c6a311896b.zip
Implement basic type inference for numbers and symbols
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad8
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
2let a:f32 = (1.0 + 2.0 * 2.0) / 2.0 2
3let a:int = (1 + 2 * 2) / 2
4let b = 1
5let c = b
6
3; enum test { 7; enum test {
4; a = 1 8; a = 1
5; b 9; b