tmonoid.nim 183 B

1234567891011121314
  1. discard """
  2. output: '''true'''
  3. """
  4. # bug #3686
  5. type Monoid = concept x, y
  6. x + y is type(x)
  7. type(z(type(x))) is type(x)
  8. proc z(x: typedesc[int]): int = 0
  9. echo(int is Monoid)