1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: allow "u64_var == 0" without casting the const literal

This commit is contained in:
Alexander Medvednikov
2019-09-23 02:14:10 +03:00
parent a585c8c22c
commit b4207e1be7
3 changed files with 15 additions and 4 deletions

View File

@ -8,6 +8,7 @@ fn test_const() {
assert b == true
assert a == 3
assert u == u64(1)
assert u == 1 // make sure this works without the cast
}
fn test_str_methods() {