summary refs log tree commit diff stats
path: root/tests/navigator/tincludefile.nim
blob: f35ab2ec97f20bfcab8f8c5758b975575349db77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
discard """
  cmd: "nim check $options --defusages:$file,12,7 $file"
  nimout: '''def tincludefile_temp.nim(11, 10)
usage tincludefile_temp.nim(12, 8)
  '''
"""




proc foo(x: int) =
  echo x

foo(3)
echo "yes", 1 != 3

#!EDIT!#
discard """
  cmd: "nim check $options --defusages:$file/../minclude.nim,2,2 $file"
  nimout: '''def tincludefile_temp.nim(10, 6)
usage minclude.nim(2, 1)
  '''
"""


proc foo(x: int) =
  echo x

include minclude