summary refs log blame commit diff stats
path: root/tests/concepts/tseqofconcept.nim
blob: 5e44117ea3eb9aee77e38c4b0a1f75acd45a521c (plain) (tree)


















                             
discard """
output: "1\n2\n3"
"""

type
  MyConcept = concept x
    someProc(x)

  SomeSeq = seq[MyConcept]

proc someProc(x:int) = echo x

proc work (s: SomeSeq) =
  for item in s:
    someProc item

var s = @[1, 2, 3]
work s