ui: fix compiling the calculator ui example with tcc

pull/6195/head
Delyan Angelov 2020-08-22 12:58:48 +03:00
parent e9e2a586ce
commit b5ca114a96
1 changed files with 1 additions and 0 deletions

View File

@ -4442,6 +4442,7 @@ fn (mut g Gen) type_default(typ table.Type) string {
else {}
}
return match sym.kind {
.interface_ { '{0}' }
.sum_type { '{0}' }
.array_fixed { '{0}' }
else { '0' }