lib.enum: allow using functional syntax for enum creation.

Fixes #910.
This commit is contained in:
Wanda 2023-10-20 18:10:51 +02:00 committed by Catherine
parent dacbd9dfb0
commit 00699f7c41
2 changed files with 5 additions and 2 deletions

View file

@ -116,3 +116,6 @@ class EnumTestCase(FHDLTestCase):
r"shape used in bit vector context; define the enumeration by inheriting from "
r"the class in amaranth\.lib\.enum and specifying the 'shape=' keyword argument$"):
Cat(EnumA.A)
def test_functional(self):
Enum("FOO", ["BAR", "BAZ"])