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

Issue 2145273002: fix propagated type of lambdas in strong mode (Closed)

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

Description

fix propagated type of lambdas in strong mode Lambda expressions were getting propagated type inference, which conflicts with the type that strong mode infers, resulting in incorrect hints. This hasn't shown up in a user-visible way, even though the value stored in the AST was not correct. But once implicit casts are disabled in StrongTypeSystem it started showing up as a (misleading) hint message. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/e200e73893ab5852d5361bd7ebefd4867654665a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 5 chunks +13 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (5 generated)
Jennifer Messerly
More context for this is here: https://github.com/dart-lang/sdk/issues/26583#issuecomment-232505809
4 years, 5 months ago (2016-07-14 00:44:02 UTC) #4
Brian Wilkerson
lgtm
4 years, 5 months ago (2016-07-14 17:35:31 UTC) #6
Jennifer Messerly
4 years, 5 months ago (2016-07-14 20:52:50 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e200e73893ab5852d5361bd7ebefd4867654665a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698