quite messy implementation of generic lambdas, needs reworking; fixes #715
This commit is contained in:
parent
9a41db7d7a
commit
9dd753f218
9 changed files with 87 additions and 27 deletions
|
|
@ -1829,8 +1829,8 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
|
|||
result = symChoice(c, n, s, scClosed)
|
||||
if result.kind == nkSym:
|
||||
markIndirect(c, result.sym)
|
||||
if isGenericRoutine(result.sym):
|
||||
localError(n.info, errInstantiateXExplicitely, s.name.s)
|
||||
# if isGenericRoutine(result.sym):
|
||||
# localError(n.info, errInstantiateXExplicitely, s.name.s)
|
||||
of nkSym:
|
||||
# because of the changed symbol binding, this does not mean that we
|
||||
# don't have to check the symbol for semantics here again!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue