mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
builtin: fix recent cast warning for tests for map (fix compilation with -prod or -W) (#24532)
This commit is contained in:
parent
11ee29c3cf
commit
89fae6096a
@ -222,8 +222,8 @@ fn test_various_map_value() {
|
||||
m17['test'] = u64(0)
|
||||
assert m17['test'] == u64(0)
|
||||
mut m18 := map[string]&int{}
|
||||
m18['test'] = &int(0)
|
||||
assert unsafe { m18['test'] } == &int(0)
|
||||
m18['test'] = &int(unsafe { nil })
|
||||
assert unsafe { m18['test'] } == &int(unsafe { nil })
|
||||
}
|
||||
|
||||
fn test_string_arr() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user