compiler: add support for panic_debug with -cg

This commit is contained in:
Delyan Angelov 2020-05-03 22:13:40 +03:00
parent 0b750a234f
commit 242670a33d
5 changed files with 14 additions and 1 deletions

View file

@ -286,6 +286,7 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl {
mut method := ast.FnDecl{
name: name
args: args
file: p.file_name
return_type: table.void_type
}
if p.tok.kind.is_start_of_type() && p.tok.line_nr == line_nr {