summary refs log tree commit diff stats
path: root/tests/navigator/tnav1.nim
blob: b6bbdbf19a48d769be91c69ed70153b18a6c60dc (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
30
31
32
33
discard """
  cmd: "nim check $options --defusages:$file,12,7 $file"
  nimout: '''def tnav1_temp.nim(11, 10)
usage tnav1_temp.nim(12, 8)
  '''
"""


import std / [times]

proc foo(x: int) =
  echo x

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

#!EDIT!#
discard """
  cmd: "nim check $options --defusages:$file,15,2 $file"
  nimout: '''def tnav1_temp.nim(12, 6)
usage tnav1_temp.nim(15, 1)
  '''
"""


import std / [times]

proc foo(x: int) =
  echo x

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