Chromium Code Reviews
DescriptionCheck const map literal keys and switch case exprs using type of constant.
The following type rules are defined based on the actual type of the
const object:
- CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS
- INCONSISTENT_CASE_EXPRESSION_TYPES
- CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS
Previously, we were using the propagated type for the case expression
checks, and the static type for the const map check.
BUG=dartbug.com/11697
R=brianwilkerson@google.com, scheglov@google.com
Committed: https://code.google.com/p/dart/source/detail?r=35723
Patch Set 1 #
Total comments: 8
Messages
Total messages: 7 (0 generated)
|