This commit is contained in:
Andreas Rumpf 2016-03-01 23:07:22 +01:00
commit 312281c7cc
2 changed files with 15 additions and 5 deletions

View file

@ -0,0 +1,13 @@
discard """
output: '''true'''
"""
# bug #3686
type Monoid = concept x, y
x + y is type(x)
type(z(type(x))) is type(x)
proc z(x: typedesc[int]): int = 0
echo(int is Monoid)