Advertisement
Guest User

Untitled

a guest
May 18th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # the following code will break compilation without any error or hint
  2. # `exited with code=3221225725`
  3. type A[I: SomeOrdinal, E] = tuple # same for object
  4. length: int
  5.  
  6. echo A.sizeof # works without the following proc
  7.  
  8. proc newA*[I: SomeOrdinal, E](): A[I, E] = # works without `SomeOrdinal`
  9. discard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement