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:
@ -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{
|
||||
|
Reference in New Issue
Block a user