fixes #797; generic procs can be used in places expecting matching concrete proc types

This commit is contained in:
Zahary Karadjov 2014-02-11 01:14:57 +02:00
commit a158053ae9
5 changed files with 80 additions and 29 deletions

View file

@ -81,6 +81,8 @@ type
semOverloadedCall*: proc (c: PContext, n, nOrig: PNode,
filter: TSymKinds): PNode {.nimcall.}
semTypeNode*: proc(c: PContext, n: PNode, prev: PType): PType {.nimcall.}
semGenerateInstance*: proc (c: PContext, fn: PSym, pt: TIdTable,
info: TLineInfo): PSym
includedFiles*: TIntSet # used to detect recursive include files
userPragmas*: TStrTable
evalContext*: PEvalContext