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

compiler: scope type alias to module

This commit is contained in:
joe-conigliaro
2020-02-10 01:40:32 +11:00
committed by GitHub
parent 179fb13a17
commit 94537c5901
3 changed files with 5 additions and 5 deletions

View File

@ -829,12 +829,12 @@ fn (p mut Parser) type_decl() {
p.fspace()
}
mut parent := Type{}
if !p.builtin_mod && p.mod != 'main' {
name = p.prepend_mod(name)
}
// Sum type
//is_sum := p.tok == .pipe
if is_sum {
if !p.builtin_mod && p.mod != 'main' {
name = p.prepend_mod(name)
}
// Register the first child (name we already parsed)
/*
p.table.register_type(Type{