v/vlib/v/tests/map_type_alias_test.v

9 lines
105 B
V

type Test = map[string]string
fn test_index() {
t := Test({
'c': 'abc'
})
assert t['c'] == 'abc'
}