mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
implement generic structs
This commit is contained in:

committed by
Alexander Medvednikov

parent
b3a402eb82
commit
fbd9fedbfb
@@ -401,7 +401,7 @@ fn (v &V) type_definitions() string {
|
||||
}
|
||||
// everything except builtin will get sorted
|
||||
for t_name, t in v.table.typesmap {
|
||||
if t_name in builtins {
|
||||
if t_name in builtins || t.is_generic {
|
||||
continue
|
||||
}
|
||||
types << t
|
||||
|
Reference in New Issue
Block a user