Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Issue 1699463002: Remove redundant verbiage on inference failure errors. (Closed)

Created:
4 years, 10 months ago by Bob Nystrom
Modified:
4 years, 10 months ago
Reviewers:
Leaf, Jennifer Messerly
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -31 lines) Patch
M pkg/analyzer/lib/src/task/strong/checker.dart View 2 chunks +1 line, -20 lines 0 comments Download
M pkg/analyzer/lib/src/task/strong/info.dart View 1 4 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Bob Nystrom
4 years, 10 months ago (2016-02-12 21:13:09 UTC) #2
Leaf
lgtm
4 years, 10 months ago (2016-02-12 23:44:41 UTC) #3
Bob Nystrom
4 years, 10 months ago (2016-02-13 00:40:51 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e14b3c3e29eab92c698419770c3fee4fcdb2655b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698