Objects can only inherit by specifiying an identifier

pull/9/head
Sasha Koshka 5 months ago
parent 821fa0ecb3
commit 715766edb4

@ -33,7 +33,7 @@ func (parser *ParsingOperation) parseObjtSection () (
if err != nil { return }
err = parser.nextToken()
if err != nil { return }
section.inherits, err = parser.parseType()
section.inherits, err = parser.parseIdentifier()
if err != nil { return }
err = parser.expect(lexer.TokenKindNewline)
if err != nil { return }

@ -191,10 +191,9 @@ type ObjtSection struct {
name string
// TODO: make this Identifier instead of Type
inherits Type
inherits Identifier
permission types.Permission
// TODO: order matters here we need to store these in an array
// TODO: add bitfield support (:n)
members map[string] ObjtMember
}