prefer_const_constructors
: false positive in tenrary expression
#4531
Labels
false-positive
P2
A bug or feature request we're likely to work on
set-flutter
Affects a rule in the recommended Flutter rule set
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
When trying to create a const object in a ternary expression, both parts must either be const or non-const. Having a mix will result in a compilation error.
To Reproduce
Expected behavior
No warning
Additional context
I'm unsure if this is related to #3802.
The text was updated successfully, but these errors were encountered: