hdl.dsl: make `if m.{If,Elif,Else}(...)` a syntax error.
authorwhitequark <whitequark@whitequark.org>
Fri, 31 Jan 2020 06:37:45 +0000 (06:37 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 31 Jan 2020 06:37:45 +0000 (06:37 +0000)
commit7e6efbec76ee097e91f0e3f27bd1a2cc82e49209
treec266526334cdbf6abe038a9fbc6217bbeb7a1322
parent45c1eb4f4b2b874886799b5a7f0ad13d926e95a1
hdl.dsl: make `if m.{If,Elif,Else}(...)` a syntax error.

A common typo, and hard to notice when it's silently ignored.

Fixes #284.
nmigen/hdl/dsl.py
nmigen/test/test_hdl_dsl.py