This commit is contained in:
Araq 2014-12-31 16:07:56 +01:00
commit 2ee2401336
5 changed files with 10 additions and 7 deletions

View file

@ -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.)