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

18 lines
276 B
V

struct GMap<Hashable<K>, V> {
map_ map[int]V
}
fn (t GMap<Hashable<K>, V>) contains(k K) bool {
return true // TODO
}
fn (t GMap<Hashable<K>, V>) set(k K, v V) {
// TODO
}
fn main() {
x := GMap<string, string>{}
x.set("hello", "world")
println(x.contains("hello"))
}