t20588.nim 459 B

12345678910111213141516171819202122232425
  1. discard """
  2. cmd: "nim check --warnings:off --hints:off $file"
  3. errormsg: ""
  4. nimout: '''
  5. t20588.nim(20, 12) Error: illegal type conversion to 'auto'
  6. t20588.nim(21, 14) Error: illegal type conversion to 'typed'
  7. t20588.nim(22, 16) Error: illegal type conversion to 'untyped'
  8. t20588.nim(24, 7) Error: illegal type conversion to 'any'
  9. '''
  10. """
  11. discard 0.0.auto
  12. discard typed("abc")
  13. discard untyped(4)
  14. var a = newSeq[bool](1000)
  15. if any(a):
  16. echo "ok?"