fix func declaration syntax
This commit is contained in:
parent
5a0a7e21f5
commit
93cd5c5a48
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ import (
|
|||
|
||||
func decl_func(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
name := input
|
||||
if name.Tag != ast.STRING {
|
||||
if name.Tag != ast.SYMBOL {
|
||||
log.Log(log.ERR,
|
||||
"non string handed to name arg",
|
||||
"argument 1 of func must be a symbol to be exported",
|
||||
"func")
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue