mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
put mOpenArrayToSeq in compile-time evaluation whitelist (it was mNone before which was whitelisted), homogenize "ordinal type expected" errors, put overloadable enums in non-experimental manual
11 lines
175 B
Nim
11 lines
175 B
Nim
discard """
|
|
errormsg: "ordinal type expected; given: float"
|
|
line: 10
|
|
"""
|
|
|
|
# https://github.com/nim-lang/Nim/pull/9909#issuecomment-445519287
|
|
|
|
type
|
|
E = enum
|
|
myVal = 80.9
|