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

let g_0 = 42 # lets start with the ultimate answer

proc getInt*(): int = return g_0

programResult = 0 # should be accessible

beforeCodeReload:
  echo "   0: before"
afterCodeReload:
  echo "   0: after"