-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Signal(range(0))
raises SyntaxWarning
#1019
Comments
It is intended in the sense that I added that warning and it performs to its specification.
I agree with Wanda that the behavior is not well-defined. Can you share the code? |
We have discussed this issue on the 2024-01-29 meeting. We have decided to allow |
Fixes #1019. Co-Authored-By: Wanda <wanda@phinode.net> Co-Authored-By: Aki Van Ness <aki@lethalbit.net>
Signal(range(0))
raisesIs this warning intended?
To me this warning is quite confusing, as amaranth implicitly converts
range(0)
(which would be something like a never type) tounsigned(0)
, andSignal(unsigned(0))
does not raise the same warning.Some more discussion can be found in the IRC logs.
The text was updated successfully, but these errors were encountered: