summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2016-07-29 18:12:05 +0300
committerZahary Karadjov <zahary@gmail.com>2017-03-24 16:58:15 +0200
commiteab1d0cc02beaa2f749725e2c3d8f19bb792a24c (patch)
tree1ba03adffae594ec0cd3c968b34dfa29e1a0b59a /tests
parent66e0f0e19cc47caa01aa898988eb7452d07e22cf (diff)
downloadNim-eab1d0cc02beaa2f749725e2c3d8f19bb792a24c.tar.gz
support for accessing the inferred concept type params with the dot operator
Diffstat (limited to 'tests')
-rw-r--r--tests/concepts/tstackconcept.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/concepts/tstackconcept.nim b/tests/concepts/tstackconcept.nim
index 3993ca534..dc75df5ff 100644
--- a/tests/concepts/tstackconcept.nim
+++ b/tests/concepts/tstackconcept.nim
@@ -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()