summary refs log tree commit diff stats
path: root/tests/dll/nimhcr_2_1.nim
blob: a13b4c6819d2e2906824787a7fdd99bfb37c1e85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import hotcodereloading

type
  Type2 = ref object of RootObj
    data*: int

let g_2* = @[Type2(data: 2), Type2(data: 3)][1..^1] # should have a length of 1

var a: tuple[str: string, i: int]
a.str = "   2: random string"
echo a.str

beforeCodeReload:
  echo "   2: before!"