fixes #3686
This commit is contained in:
parent
9687ea3c3e
commit
312281c7cc
2 changed files with 15 additions and 5 deletions
13
tests/concepts/tmonoid.nim
Normal file
13
tests/concepts/tmonoid.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue