support for accessing the inferred concept type params with the dot operator
This commit is contained in:
parent
66e0f0e19c
commit
eab1d0cc02
6 changed files with 24 additions and 7 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue