summary refs log tree commit diff stats
path: root/tests/vm/tconstprocassignments.nim
blob: 0e2d2ed16513c8ad25d383178641869dd1bc2030 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  output: '''
100
100
'''
"""

proc f():int {.compileTime.} = 100

const F = f
echo F()

const G = proc ():int =
  let x = f
  let y = x
  y()

echo G()