trectype.nim 419 B

12345678910111213141516171819202122232425
  1. discard """
  2. errormsg: "internal error: cannot generate C type for: PA"
  3. disabled: true
  4. """
  5. # Test recursive type descriptions
  6. # (mainly for the C code generator)
  7. type
  8. PA = ref TA
  9. TA = array[0..2, PA]
  10. PRec = ref TRec
  11. TRec {.final.} = object
  12. a, b: TA
  13. P1 = ref T1
  14. PB = ref TB
  15. TB = array[0..3, P1]
  16. T1 = array[0..6, PB]
  17. var
  18. x: PA
  19. new(x)
  20. #ERROR_MSG internal error: cannot generate C type for: PA