blob: 2a9921bada120ba4722652a02931ac650409f215 (
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:]#
|