tparameterizedparent3.nim 251 B

12345678910111213141516
  1. discard """
  2. errormsg: "attempt to redefine: 'color'"
  3. file: "tparameterizedparent3.nim"
  4. line: 13
  5. """
  6. # bug #5264
  7. type
  8. FruitBase = object of RootObj
  9. color: int
  10. Apple[T] = object of T
  11. width: int
  12. color: int
  13. var x: Apple[FruitBase]