tenumfieldpragma.nim 443 B

1234567891011121314151617181920212223
  1. discard """
  2. nimout: '''tenumfieldpragma.nim(20, 10) Warning: d is deprecated [Deprecated]
  3. tenumfieldpragma.nim(21, 10) Warning: e is deprecated [Deprecated]
  4. tenumfieldpragma.nim(22, 10) Warning: f is deprecated [Deprecated]
  5. '''
  6. """
  7. type
  8. A = enum
  9. a
  10. b = "abc"
  11. c = (10, "def")
  12. d {.deprecated.}
  13. e {.deprecated.} = "ghi"
  14. f {.deprecated.} = (20, "jkl")
  15. var v1 = a
  16. var v2 = b
  17. var v3 = c
  18. var v4 = d
  19. var v5 = e
  20. var v6 = f