fixes #1774
This commit is contained in:
parent
a93585e47f
commit
2ee2401336
5 changed files with 10 additions and 7 deletions
7
tests/typerel/typedescs.nim
Normal file
7
tests/typerel/typedescs.nim
Normal 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.)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue