t7839.nim 247 B

12345678910
  1. type A[I: SomeOrdinal, E] = tuple # same for object
  2. length: int
  3. doAssert A.sizeof == sizeof(int) # works without the following proc
  4. proc newA*[I: SomeOrdinal, E](): A[I, E] = # works without `SomeOrdinal`
  5. discard
  6. discard newA[uint8, int]()