fixes a minor bug when 'type' is used in a wrong way
This commit is contained in:
parent
4298553de4
commit
2475794a75
1 changed files with 2 additions and 2 deletions
|
|
@ -1009,9 +1009,9 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
|
|||
put(g, tkElse, " else")
|
||||
putWithSpace(g, tkColon, ":")
|
||||
gsub(g, n.sons[0])
|
||||
of nkTypeOfExpr:
|
||||
of nkTypeOfExpr:
|
||||
putWithSpace(g, tkType, "type")
|
||||
gsub(g, n.sons[0])
|
||||
if n.len > 0: gsub(g, n.sons[0])
|
||||
of nkRefTy:
|
||||
if sonsLen(n) > 0:
|
||||
putWithSpace(g, tkRef, "ref")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue