typedescs.nim 227 B

12345678
  1. # bug #1774
  2. proc p(T: typedesc) = discard
  3. p(type((5, 6))) # Compiles
  4. (type((5, 6))).p # Doesn't compile (SIGSEGV: Illegal storage access.)
  5. type T = type((5, 6)) # Doesn't compile (SIGSEGV: Illegal storage access.)