support for accessing the inferred concept type params with the dot operator

This commit is contained in:
Zahary Karadjov
2016-07-29 18:12:05 +03:00
parent 66e0f0e19c
commit eab1d0cc02
6 changed files with 24 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ discard """
output: "20\n10"
msg: '''
INFERRED int
IMPLICIT INFERRED int int
'''
"""
@@ -32,7 +33,7 @@ proc genericAlgorithm[T](s: var Stack[T], y: T) =
echo s.pop
proc implicitGeneric(s: var Stack): auto =
# static: echo "IMPLICIT INFERRED ", s.T.name, " ", Stack.T.name
static: echo "IMPLICIT INFERRED ", s.T.name, " ", Stack.T.name
return s.pop()