make more tests green
This commit is contained in:
parent
97e26967f1
commit
aebe9d7d13
3 changed files with 11 additions and 6 deletions
|
|
@ -628,6 +628,9 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
|
||||||
of {skProc, skMethod}:
|
of {skProc, skMethod}:
|
||||||
result = n
|
result = n
|
||||||
of skType:
|
of skType:
|
||||||
|
# XXX gensym'ed symbols can come here and cannot be resolved. This is
|
||||||
|
# dirty, but correct.
|
||||||
|
if s.typ != nil:
|
||||||
result = newSymNodeTypeDesc(s, n.info)
|
result = newSymNodeTypeDesc(s, n.info)
|
||||||
of skGenericParam:
|
of skGenericParam:
|
||||||
if s.typ.kind == tyStatic:
|
if s.typ.kind == tyStatic:
|
||||||
|
|
|
||||||
|
|
@ -869,8 +869,10 @@ proc transform(c: PTransf, n: PNode): PTransNode =
|
||||||
else:
|
else:
|
||||||
result = transformSons(c, n)
|
result = transformSons(c, n)
|
||||||
of nkIdentDefs, nkConstDef:
|
of nkIdentDefs, nkConstDef:
|
||||||
|
when true:
|
||||||
|
result = transformSons(c, n)
|
||||||
|
else:
|
||||||
result = n.PTransNode
|
result = n.PTransNode
|
||||||
#transformSons(c, n)
|
|
||||||
let L = n.len-1
|
let L = n.len-1
|
||||||
result[L] = transform(c, n.sons[L])
|
result[L] = transform(c, n.sons[L])
|
||||||
# XXX comment handling really sucks:
|
# XXX comment handling really sucks:
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ when true:
|
||||||
q(B()) # This call reported as ambiguous.
|
q(B()) # This call reported as ambiguous.
|
||||||
|
|
||||||
# bug #2219
|
# bug #2219
|
||||||
template testPred(a: expr) =
|
template testPred(a: untyped) =
|
||||||
block:
|
block:
|
||||||
type A = object of RootObj
|
type A = object of RootObj
|
||||||
type B = object of A
|
type B = object of A
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue