Definition arguments are now parsed correctly

This commit is contained in:
Sasha Koshka 2022-09-03 00:17:25 -04:00
parent 689200085a
commit b220f3dab5
1 changed files with 2 additions and 0 deletions

View File

@ -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 }