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

new enum step 1

This commit is contained in:
Alexander Medvednikov
2019-11-06 06:16:12 +03:00
parent 855a736a2c
commit 4d876d1980
4 changed files with 9 additions and 9 deletions

View File

@ -1219,7 +1219,7 @@ fn (p mut Parser) replace_type_params(f &Fn, ti TypeInst) []string {
fn (p mut Parser) register_vargs_stuct(typ string, len int) string {
vargs_struct := 'varg_$typ'
varg_type := Type{
cat: .struct_,
cat: TypeCategory.struct_,
name: vargs_struct,
mod: p.mod
}
@ -1299,7 +1299,7 @@ fn (p mut Parser) register_multi_return_stuct(types []string) string {
typ := '_V_MulRet_' + types.join('_V_').replace('*', '_PTR_')
if p.table.known_type(typ) { return typ }
p.table.register_type2(Type{
cat: .struct_,
cat: TypeCategory.struct_,
name: typ,
mod: p.mod
})