handle recursive types during the instantiation of meta types; propagate tfHasMeta more carefully

This commit is contained in:
Zahary Karadjov 2013-12-30 14:30:36 +02:00
commit 7e24cf26de
4 changed files with 86 additions and 26 deletions

View file

@ -173,6 +173,7 @@ proc instGenericContainer(c: PContext, info: TLineInfo, header: PType,
var cl: TReplTypeVars
initIdTable(cl.symMap)
initIdTable(cl.typeMap)
initIdTable(cl.localCache)
cl.info = info
cl.c = c
cl.allowMetaTypes = allowMetaTypes