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

Issue 2779003004: Don't disable downward inference inside initializers used for top-level inference. (Closed)

Created:
3 years, 8 months ago by scheglov
Modified:
3 years, 8 months ago
Reviewers:
Leaf, Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't disable downward inference inside initializers used for top-level inference. So, I'm removing this flag that didn't allow us to perform invocation type inference and caused bogus STRONG_MODE_INVALID_CAST_NEW_EXPR errors. This causes us to perform inference where we don't need it, and report (only informational?) info:INFERRED_TYPE_ALLOCATION for these invocations. At the same point, we report errors for these cases, which should be fixed anyway, and then downward inference will not be performed anymore. R=brianwilkerson@google.com, leafp@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/16e7ab8d1795105a08aff9fe1c3663ed5e2240ad

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -33 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 6 chunks +1 line, -21 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 chunk +1 line, -5 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/summary/top_level_inference_test.dart View 2 chunks +21 lines, -6 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
3 years, 8 months ago (2017-03-29 06:25:38 UTC) #1
Brian Wilkerson
lgtm
3 years, 8 months ago (2017-03-29 13:33:54 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 16e7ab8d1795105a08aff9fe1c3663ed5e2240ad (presubmit successful).
3 years, 8 months ago (2017-03-29 16:24:05 UTC) #4
Leaf
3 years, 8 months ago (2017-03-29 17:49:56 UTC) #5
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698