bugfix: pragmas allowed for implicit generics
This commit is contained in:
parent
117a77e106
commit
43de61f37b
1 changed files with 3 additions and 3 deletions
|
|
@ -187,9 +187,9 @@ proc newLib(kind: TLibKind): PLib =
|
|||
new(result)
|
||||
result.kind = kind #initObjectSet(result.syms)
|
||||
|
||||
proc addToLib(lib: PLib, sym: PSym) =
|
||||
#ObjectSetIncl(lib.syms, sym);
|
||||
if sym.annex != nil: LocalError(sym.info, errInvalidPragma)
|
||||
proc addToLib(lib: PLib, sym: PSym) =
|
||||
#if sym.annex != nil and not isGenericRoutine(sym):
|
||||
# LocalError(sym.info, errInvalidPragma)
|
||||
sym.annex = lib
|
||||
|
||||
proc makePtrType(c: PContext, baseType: PType): PType =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue