mirror of
https://github.com/hi-language/transpiler.git
synced 2026-01-13 16:18:04 +00:00
Feat: Add test for operator precedence
This commit is contained in:
5
test/src/precedence.hi
Normal file
5
test/src/precedence.hi
Normal file
@@ -0,0 +1,5 @@
|
||||
result: 2 + 3 * 4
|
||||
_(result) // Should be 14, not 20
|
||||
|
||||
result2: (2 + 3) * 4
|
||||
_(result2) // Should be 20
|
||||
Reference in New Issue
Block a user