minor improvements to follow up recent PRs (#20342)
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
This commit is contained in:
parent
2140d05f34
commit
a73ae3e066
8 changed files with 45 additions and 51 deletions
|
|
@ -212,7 +212,7 @@ proc semOrd(c: PContext, n: PNode): PNode =
|
|||
if isOrdinalType(parType, allowEnumWithHoles=true):
|
||||
discard
|
||||
else:
|
||||
localError(c.config, n.info, errOrdinalTypeExpected)
|
||||
localError(c.config, n.info, errOrdinalTypeExpected % typeToString(parType, preferDesc))
|
||||
result.typ = errorType(c)
|
||||
|
||||
proc semBindSym(c: PContext, n: PNode): PNode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue