From 312281c7cc19bf467207af93a13e9acdd9b34c60 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 1 Mar 2016 23:07:22 +0100 Subject: fixes #3686 --- tests/concepts/tmonoid.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/concepts/tmonoid.nim (limited to 'tests') diff --git a/tests/concepts/tmonoid.nim b/tests/concepts/tmonoid.nim new file mode 100644 index 000000000..49b3239bd --- /dev/null +++ b/tests/concepts/tmonoid.nim @@ -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) -- cgit 1.4.1-2-gfad0