diff options
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r-- | compiler/semdata.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 4c94d0812..72d5a5fef 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -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 = |