closed ambiguous enum defaults to first overload (#20457)
* closed ambiguous enum defaults to first overload * add warning * turn to hint * work around config
This commit is contained in:
parent
24b81e9df6
commit
cfff454cf9
8 changed files with 37 additions and 8 deletions
|
|
@ -1,12 +1,15 @@
|
|||
discard """
|
||||
errormsg: "ambiguous identifier"
|
||||
errormsg: "ambiguous enum field"
|
||||
file: "tambsym3.nim"
|
||||
line: 11
|
||||
line: 14
|
||||
"""
|
||||
# Test ambiguous symbols
|
||||
|
||||
import mambsym1, times
|
||||
|
||||
{.hint[AmbiguousEnum]: on.}
|
||||
{.hintAsError[AmbiguousEnum]: on.}
|
||||
|
||||
var
|
||||
v = mDec #ERROR_MSG ambiguous identifier
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue