diagnostics upgrade
This commit is contained in:
@@ -428,6 +428,13 @@ parse_type_atom :: proc(parser: ^Parser) -> ast.Type_Syntax {
|
||||
count_expr=u32(call),
|
||||
})
|
||||
}
|
||||
append(&parser.module.type_uses, ast.Type_Use{
|
||||
type=named,
|
||||
span=first.span,
|
||||
pkg=parser.pkg,
|
||||
file=parser.file,
|
||||
diagnostic=source.INVALID_DIAGNOSTIC,
|
||||
})
|
||||
return named
|
||||
}
|
||||
source.add(parser.diagnostics, tok.span, "expected a type")
|
||||
|
||||
Reference in New Issue
Block a user