summary refs log tree commit diff stats
path: root/tests/misc/tsamename.nim
blob: b2d17a5065eddb6e7b2567c71c1a7980b8e8806a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# bug #9891

import "."/tsamename2

# this works
callFun(fooBar2)

when true:
  # Error: attempting to call routine: 'processPattern'
  callFun(fooBar)

when true:
  # BUG: Error: internal error: expr(skModule); unknown symbol
  proc processPattern() = discard
  callFun(fooBar)