Definition arguments are now parsed correctly
This commit is contained in:
parent
689200085a
commit
b220f3dab5
@ -28,6 +28,8 @@ func (parser *ParsingOperation) parseArgument () (argument Argument, err error)
|
||||
if err != nil { return }
|
||||
|
||||
if parser.token.Is(lexer.TokenKindColon) {
|
||||
err = parser.nextToken()
|
||||
if err != nil { return }
|
||||
var what Type
|
||||
what, err = parser.parseType()
|
||||
if err != nil { return }
|
||||
|
Reference in New Issue
Block a user