summary refs log blame commit diff stats
path: root/tests/concepts/t1128.nim
blob: 69a2fa9b73ba8bda8f94a3f59bac652e3044df36 (plain) (tree)
1
2
3
4
5
6
7
8





                           

                               












                                               
discard """
  output: "true\ntrue"
"""

type
  TFooContainer[T] = object

  TContainer[T] = concept var c
    foo(c, T)

proc foo[T](c: var TFooContainer[T], val: T) =
  discard

proc bar(c: var TContainer) =
  discard

var fooContainer: TFooContainer[int]
echo fooContainer is TFooContainer # true.
echo fooContainer is TFooContainer[int] # true.
fooContainer.bar()