treject.nim 325 B

123456789101112131415161718
  1. discard """
  2. action: reject
  3. nimout: '''treject.nim(14, 13) Error: 'iD' should be: 'id' [field declared in treject.nim(9, 5)]'''
  4. matrix: "--styleCheck:error --styleCheck:usages --hint:Name:on"
  5. """
  6. type
  7. Name = object
  8. id: int
  9. template hello =
  10. var iD = "string"
  11. var name: Name
  12. echo name.iD
  13. echo iD
  14. hello()