concept type params inference working in basic examples

This commit is contained in:
Zahary Karadjov 2016-07-29 04:56:14 +03:00
commit 66e0f0e19c
5 changed files with 93 additions and 2 deletions

View file

@ -883,7 +883,8 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
for i in 1 .. <paramType.len:
let lifted = liftingWalk(paramType.sons[i])
if lifted != nil: paramType.sons[i] = lifted
when false:
if paramType.base.lastSon.kind == tyUserTypeClass:
let expanded = instGenericContainer(c, info, paramType,
allowMetaTypes = true)
result = liftingWalk(expanded, true)