tdeprecated3.nim 643 B

12345678910111213141516171819202122232425262728293031323334
  1. discard """
  2. matrix: "--hint:all:off"
  3. nimoutFull: true
  4. nimout: '''
  5. tdeprecated3.nim(21, 8) Warning: goodbye; mdeprecated3 is deprecated [Deprecated]
  6. tdeprecated3.nim(24, 10) Warning: Ty is deprecated [Deprecated]
  7. tdeprecated3.nim(27, 10) Warning: hello; Ty1 is deprecated [Deprecated]
  8. tdeprecated3.nim(30, 8) Warning: aVar is deprecated [Deprecated]
  9. tdeprecated3.nim(32, 3) Warning: aProc is deprecated [Deprecated]
  10. tdeprecated3.nim(33, 3) Warning: hello; aProc1 is deprecated [Deprecated]
  11. '''
  12. """
  13. # line 20
  14. import mdeprecated3
  15. block:
  16. var z: Ty
  17. z = 0
  18. block:
  19. var z: Ty1
  20. z = 0
  21. block:
  22. echo aVar
  23. block:
  24. aProc()
  25. aProc1()