diff options
author | Araq <rumpf_a@web.de> | 2014-12-31 16:07:56 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-12-31 16:07:56 +0100 |
commit | 2ee24013360649d9ec3749e5dcdce37716900854 (patch) | |
tree | 3d3927b2aac99f7ef126c01e4e1b2328ae568c78 /tests | |
parent | a93585e47fb41865a5315d83e78791c1349f945d (diff) | |
download | Nim-2ee24013360649d9ec3749e5dcdce37716900854.tar.gz |
fixes #1774
Diffstat (limited to 'tests')
-rw-r--r-- | tests/typerel/typedescs.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typerel/typedescs.nim b/tests/typerel/typedescs.nim new file mode 100644 index 000000000..23b9ce64f --- /dev/null +++ b/tests/typerel/typedescs.nim @@ -0,0 +1,7 @@ +# bug #1774 +proc p(T: typedesc) = discard + +p(type((5, 6))) # Compiles +(type((5, 6))).p # Doesn't compile (SIGSEGV: Illegal storage access.) +type T = type((5, 6)) # Doesn't compile (SIGSEGV: Illegal storage access.) + |