summary refs log tree commit diff stats
path: root/tests/lookups/tambsym3.nim
blob: e50f9c4618a3b965a5b7cc1f9fab4fcd6bd3e7d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))