bugfix: pragmas allowed for implicit generics

This commit is contained in:
Araq 2013-06-29 09:08:57 +02:00
commit 43de61f37b

View file

@ -188,8 +188,8 @@ proc newLib(kind: TLibKind): PLib =
result.kind = kind #initObjectSet(result.syms) result.kind = kind #initObjectSet(result.syms)
proc addToLib(lib: PLib, sym: PSym) = proc addToLib(lib: PLib, sym: PSym) =
#ObjectSetIncl(lib.syms, sym); #if sym.annex != nil and not isGenericRoutine(sym):
if sym.annex != nil: LocalError(sym.info, errInvalidPragma) # LocalError(sym.info, errInvalidPragma)
sym.annex = lib sym.annex = lib
proc makePtrType(c: PContext, baseType: PType): PType = proc makePtrType(c: PContext, baseType: PType): PType =