mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
fixes #23397 All ambiguous symbols generate symchoices for call arguments since #23123. So, if a type mismatch receives a symchoice node for an argument, we now treat it as an ambiguous identifier and list the ambiguous symbols in the error message.
15 lines
404 B
Nim
15 lines
404 B
Nim
import mambparam2, mambparam3
|
|
|
|
echo test #[tt.Error
|
|
^ type mismatch: got <string | string>
|
|
but expected one of:
|
|
proc echo(x: varargs[typed, `$$`])
|
|
first type mismatch at position: 1
|
|
required type for x: varargs[typed]
|
|
but expression 'test' is of type: None
|
|
ambiguous identifier: 'test' -- use one of the following:
|
|
mambparam1.test: string
|
|
mambparam3.test: string
|
|
|
|
expression: echo test]#
|