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)
commit9964fc6b5768654bfc6747e62ed351116d858a24
treec266526334cdbf6abe038a9fbc6217bbeb7a1322
parent3ac13eb8f9a83b2a89587ce83b72c4966e9bad2e
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