[enhancement][DSLX] if-expr followed by as
should give diagnostic about precedence
#1835
Labels
as
should give diagnostic about precedence
#1835
What's hard to do? (limit 100 words)
We should give a nice diagnostic like rust does, via the rust playground:
-- https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6b48b619a2f263d65f6adf674f126e62
Current best alternative workaround (limit 100 words)
Break into two statements.
Your view of the "best case XLS enhancement" (limit 100 words)
We add a similar diagnostic (otherwise it's confusing since we use expressions for the purposes of ternaries).
The text was updated successfully, but these errors were encountered: