* mitigates #12815

* Update doc/nimc.rst

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
Andreas Rumpf 2021-07-22 11:59:21 +02:00 • committed by GitHub
commit 0c4582c665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 5 deletions

View file

@ -95,13 +95,26 @@ reject:
{.push warning[AnyEnumConv]:on, warningAsError[AnyEnumConv]:on.}
reject:
# bug #12815
type
Foo = enum
one = 1
three = 3
one
three
var va = 2
var vb = va.Foo
{.pop.}
{.push warningAsError[HoleEnumConv]:on.}
reject:
# bug #12815
type
Hole = enum
one = 1
three = 3
var va = 2
var vb = va.Hole
{.pop.}