tambsym3.nim 273 B

1234567891011121314151617
  1. discard """
  2. errormsg: "ambiguous enum field"
  3. file: "tambsym3.nim"
  4. line: 14
  5. """
  6. # Test ambiguous symbols
  7. import mambsym1, times
  8. {.hint[AmbiguousEnum]: on.}
  9. {.hintAsError[AmbiguousEnum]: on.}
  10. var
  11. v = mDec #ERROR_MSG ambiguous identifier
  12. writeLine(stdout, ord(v))