mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +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.
17 lines
381 B
Nim
17 lines
381 B
Nim
discard """
|
|
matrix: "-d:testsConciseTypeMismatch"
|
|
"""
|
|
|
|
import mambparam2, mambparam3
|
|
|
|
echo test #[tt.Error
|
|
^ type mismatch
|
|
Expression: echo test
|
|
[1] test: string | string
|
|
|
|
Expected one of (first mismatch at [position]):
|
|
[1] proc echo(x: varargs[typed, `$$`])
|
|
ambiguous identifier: 'test' -- use one of the following:
|
|
mambparam1.test: string
|
|
mambparam3.test: string]#
|