mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
14 lines
183 B
Nim
14 lines
183 B
Nim
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)
|