summary refs log tree commit diff stats
path: root/tests/lookups/tambprocvar.nim
blob: f5c3fde4f8f0519e2b521c1927430671623c5da1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  action: reject
  cmd: "nim check $file"
  nimout: '''
tambprocvar.nim(15, 11) Error: ambiguous identifier: 'foo' -- use one of the following:
  tambprocvar.foo: proc (x: int){.noSideEffect, gcsafe.}
  tambprocvar.foo: proc (x: float){.noSideEffect, gcsafe.}
'''
"""

block:
  proc foo(x: int) = discard
  proc foo(x: float) = discard

  let x = foo

block:
  let x = `+` #[tt.Error
          ^ ambiguous identifier: '+' -- use one of the following:]#