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

Issue 2605583002: Fix warnings in pkg/analyzer caused by be6a822daff2fae75a480d7da656ab0d9c86512e (Closed)

Created:
3 years, 12 months ago by Paul Berry
Modified:
3 years, 12 months ago
Reviewers:
scheglov, mfairhurst
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix warnings in pkg/analyzer caused by be6a822daff2fae75a480d7da656ab0d9c86512e Dart's type promotion rules aren't sophisticated enough to understand that (a is num && b is num) || (a is String && b is String) means that it is safe to evaluate (a + b), so we have to split it into two separate cases. TBR=mfairhurst@google.com,scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/2805019038c52e33b15d6046a83ce3166dda94f3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M pkg/analyzer/lib/src/dart/ast/utilities.dart View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Paul Berry
Committed patchset #1 (id:1) manually as 2805019038c52e33b15d6046a83ce3166dda94f3 (presubmit successful).
3 years, 12 months ago (2016-12-25 16:00:53 UTC) #2
scheglov
LGTM
3 years, 12 months ago (2016-12-25 19:24:02 UTC) #3
mfairhurst
3 years, 12 months ago (2016-12-27 20:16:22 UTC) #4
Message was sent while issue was closed.
lgtm

Good catch, thanks for fixing my mistake here!

Powered by Google App Engine
This is Rietveld 408576698