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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user