tlexermisc.nim 293 B

12345678910111213141516171819202122232425262728
  1. discard """
  2. action: run
  3. output: "equal"
  4. """
  5. var t=0x950412DE
  6. if t==0x950412DE:
  7. echo "equal"
  8. else:
  9. echo "not equal"
  10. type
  11. TArray = array[0x0012..0x0013, int]
  12. var a: TArray
  13. doAssert a[0x0012] == 0
  14. # #7884
  15. type Obj = object
  16. ö: int
  17. let o = Obj(ö: 1)
  18. doAssert o.ö == 1