Fixed nested complex initialization values not parsing
This commit is contained in:
parent
9dce9b2f75
commit
2605d1fb09
@ -111,8 +111,7 @@ data ro object:Obj
|
||||
|
||||
func TestType (test *testing.T) {
|
||||
checkTree ("../tests/parser/type",
|
||||
`
|
||||
:arf
|
||||
`:arf
|
||||
---
|
||||
type ro Basic:Int
|
||||
type ro BasicInit:Int 6
|
||||
|
@ -147,7 +147,7 @@ func (parser *ParsingOperation) parseTypeNodeChildren (
|
||||
err = parser.nextToken()
|
||||
if err != nil { return }
|
||||
var child TypeNode
|
||||
child, err = parser.parseTypeNode(baseIndent + 1)
|
||||
child, err = parser.parseTypeNode(baseIndent)
|
||||
|
||||
// if the member has already been listed, throw an error
|
||||
_, exists := parent.children[child.name]
|
||||
|
Reference in New Issue
Block a user