Chromium Code Reviews
DescriptionRemove redundant verbiage on inference failure errors.
As far as I can tell, the reason is always redundant with the type
error itself. If there are cases where that isn't true, I'd like to
know them.
Also, there was some seemingly dead code in there. _coerceTo() would
return an Identity coercion if fromT <: toT. Then we'd return early from
_checkAssignment().
So the success case in _inferExpression() was never hit: if you get to
the point where it's called, you know it's not a subtype already.
R=leafp@google.com
Committed: https://github.com/dart-lang/sdk/commit/e14b3c3e29eab92c698419770c3fee4fcdb2655b
Patch Set 1 #Patch Set 2 : Finish tearing out unused reason. #
Messages
Total messages: 5 (2 generated)
|
||||||||||||||||||||||||||||