diff --git a/parser/type-notation.go b/parser/type-notation.go index ce87672..69f7e5c 100644 --- a/parser/type-notation.go +++ b/parser/type-notation.go @@ -286,6 +286,8 @@ func (parser *ParsingOperation) parseObjectNewMember () ( // get type err = parser.nextToken(lexer.TokenKindColon) if err != nil { return } + err = parser.nextToken(lexer.TokenKindName, lexer.TokenKindLBrace) + if err != nil { return } member.what, err = parser.parseType() if err != nil { return }