mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
132 B
V
10 lines
132 B
V
struct Test {
|
|
s string
|
|
}
|
|
|
|
fn test_map_value_init() {
|
|
m := map[string]Test{}
|
|
empty := m['not-here']
|
|
assert !isnil(empty.s.str)
|
|
}
|