nimhcr_2_1.nim 277 B

12345678910111213141516
  1. import hotcodereloading
  2. type
  3. Type2 = ref object of RootObj
  4. data*: int
  5. let g_2* = @[Type2(data: 2), Type2(data: 3)][1..^1] # should have a length of 1
  6. var a: tuple[str: string, i: int]
  7. a.str = " 2: random string"
  8. echo a.str
  9. beforeCodeReload:
  10. echo " 2: before!"