tfinalobj.nim 158 B

12345678910111213141516
  1. discard """
  2. output: '''abc'''
  3. """
  4. type
  5. TA {.pure, final.} = object
  6. x: string
  7. var
  8. a: TA
  9. a.x = "abc"
  10. doAssert TA.sizeof == string.sizeof
  11. echo a.x