* closed ambiguous enum defaults to first overload * add warning * turn to hint * work around config
16 lines
273 B
Nim
16 lines
273 B
Nim
discard """
|
|
errormsg: "ambiguous enum field"
|
|
file: "tambsym3.nim"
|
|
line: 14
|
|
"""
|
|
# Test ambiguous symbols
|
|
|
|
import mambsym1, times
|
|
|
|
{.hint[AmbiguousEnum]: on.}
|
|
{.hintAsError[AmbiguousEnum]: on.}
|
|
|
|
var
|
|
v = mDec #ERROR_MSG ambiguous identifier
|
|
|
|
writeLine(stdout, ord(v))
|