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

Issue 2115173002: fix #25220, infer generic type from constructor arguments (Closed)

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

Description

fix #25220, infer generic type from constructor arguments this makes it consistent in how constructors, generic functions, and literals are treated includes changes in https://codereview.chromium.org/2115743002/ R=leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/8d2c6d033afd3427a28b3e0dc2d53649db404db8

Patch Set 1 : revert #

Patch Set 2 : add comments #

Patch Set 3 : add another comment #

Total comments: 7

Patch Set 4 : tests, comments, changelog #

Total comments: 2

Patch Set 5 : skip tests that aren't implemented in AST summaries #

Patch Set 6 : update tests to be AST summary friendly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -51 lines) Patch
M pkg/analyzer/CHANGELOG.md View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 2 3 8 chunks +106 lines, -20 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 4 chunks +5 lines, -21 lines 0 comments Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 2 chunks +1 line, -2 lines 0 comments Download
M pkg/analyzer/test/generated/type_system_test.dart View 4 chunks +4 lines, -6 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 2 3 4 5 2 chunks +148 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Jennifer Messerly
Hi Leaf, Please take a look at this one. I've tried to comment all of ...
4 years, 5 months ago (2016-07-02 00:25:31 UTC) #4
Jennifer Messerly
@Leaf, friendly ping if you get a chance. No worries I know you've had a ...
4 years, 5 months ago (2016-07-12 16:51:53 UTC) #5
Leaf
Very nice! LGTM! Sorry about the delay - I put this aside since you were ...
4 years, 5 months ago (2016-07-12 17:23:26 UTC) #6
Jennifer Messerly
Thanks Leaf. I'm going to follow up on the tests & re-send https://codereview.chromium.org/2115173002/diff/60001/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart ...
4 years, 5 months ago (2016-07-12 17:45:56 UTC) #7
Jennifer Messerly
RE: breaking change ... yeah, great point too. I'll add a note to the CHANGELOG. ...
4 years, 5 months ago (2016-07-12 17:52:50 UTC) #8
Jennifer Messerly
Tests added. One interesting case I'd be curious to hear your thoughts about. https://codereview.chromium.org/2115173002/diff/80001/pkg/analyzer/test/src/task/strong/inferred_type_test.dart File ...
4 years, 5 months ago (2016-07-12 19:16:45 UTC) #9
Leaf
still lgtm. https://codereview.chromium.org/2115173002/diff/80001/pkg/analyzer/test/src/task/strong/inferred_type_test.dart File pkg/analyzer/test/src/task/strong/inferred_type_test.dart (right): https://codereview.chromium.org/2115173002/diff/80001/pkg/analyzer/test/src/task/strong/inferred_type_test.dart#newcode604 pkg/analyzer/test/src/task/strong/inferred_type_test.dart:604: C<num> c_num = /*info:INFERRED_TYPE_ALLOCATION,info:INFERRED_TYPE_ALLOCATION*/new C(42); On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 19:54:54 UTC) #10
Jennifer Messerly
Hi Paul, I added a test skip here for AST based summaries: https://codereview.chromium.org/2115173002/diff2/80001:100001/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart Does this ...
4 years, 5 months ago (2016-07-12 20:36:06 UTC) #12
Paul Berry
On 2016/07/12 20:36:06, John Messerly wrote: > Hi Paul, > > I added a test ...
4 years, 5 months ago (2016-07-12 20:59:34 UTC) #13
Jennifer Messerly
On 2016/07/12 20:59:34, Paul Berry wrote: > On 2016/07/12 20:36:06, John Messerly wrote: > > ...
4 years, 5 months ago (2016-07-12 23:13:03 UTC) #14
Jennifer Messerly
4 years, 5 months ago (2016-07-12 23:16:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:120001) manually as
8d2c6d033afd3427a28b3e0dc2d53649db404db8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698