mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 08:43:58 +00:00
support for accessing the inferred concept type params with the dot operator
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user