bugfix: 'indexOf' for tuple fields works

This commit is contained in:
Araq 2013-03-11 08:42:35 +01:00
commit 78b27ed7fa
3 changed files with 30 additions and 7 deletions

View file

@ -31,11 +31,6 @@ proc getIdentNode(n: PNode): PNode =
illFormedAst(n)
result = n
proc newSymNodeTypeDesc(s: PSym; info: TLineInfo): PNode =
result = newSymNode(s, info)
result.typ = newType(tyTypeDesc, s.owner)
result.typ.addSonSkipIntLit(s.typ)
proc semGenericStmt(c: PContext, n: PNode, flags: TSemGenericFlags,
ctx: var TIntSet): PNode
proc semGenericStmtScope(c: PContext, n: PNode,