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

compiler: prerequisite changes for upcoming map update

This commit is contained in:
Joe Conigliaro
2020-03-12 22:19:13 +11:00
parent 99398ba652
commit b750f1d1bb
2 changed files with 9 additions and 1 deletions

View File

@@ -401,7 +401,7 @@ fn (v &V) type_definitions() string {
mut types := []Type // structs that need to be sorted
mut builtin_types := []Type // builtin types
// builtin types need to be on top
builtins := ['string', 'array', 'map', 'Option']
builtins := ['string', 'array', 'KeyValue', 'DenseArray', 'map', 'Option']
for builtin in builtins {
typ := v.table.typesmap[builtin]
builtin_types << typ