Closed chykon closed 1 year ago
This represents a trivial case of a combinational loop. It should be quite easy to detect statically, especially given _Wire
s are shared among connected Logic
s. I am having trouble thinking of any valid use-case where a ring of wires connected directly to each other (including one to itself) would ever be valuable, so throwing an exception immediately seems fair to me.
Thank you for filing!
Describe the bug
Logic
can be connected to itself, which is rather odd.To Reproduce
Expected behavior
Connecting
Logic
to itself is not allowed.Actual behavior
Connecting
Logic
to itself is allowed.Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
ROHD v0.4.2