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

Issue 1364353003: [analyzer] copy generic type args when inferring a new function type for an ExecutableElement (Closed)

Created:
5 years, 3 months ago by Jennifer Messerly
Modified:
5 years, 2 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

[analyzer] copy generic type args when inferring a new function type for an ExecutableElement This matches what resolver.dart visitMethodDeclaration does when it creats the FunctionTypeImpl for the method. So we want to preserve these generic type args when we're building the new inferred function type, otherwise we'll fail to substitute them later on. Context: https://github.com/dart-lang/dev_compiler/issues/342#issuecomment-142748853 R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/59eb287389641b662b9fbb8d3ee541088aaa98d1

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M pkg/analyzer/lib/src/task/strong_mode.dart View 1 2 chunks +4 lines, -2 lines 2 comments Download
M pkg/analyzer/test/src/task/strong_mode_test.dart View 2 chunks +8 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (1 generated)
Jennifer Messerly
https://codereview.chromium.org/1364353003/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1364353003/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode32 pkg/analyzer/lib/src/task/strong_mode.dart:32: ..typeArguments = functionType.typeArguments; not sure if y'all use cascades, ...
5 years, 2 months ago (2015-09-24 22:35:56 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1364353003/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1364353003/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode32 pkg/analyzer/lib/src/task/strong_mode.dart:32: ..typeArguments = functionType.typeArguments; I haven't gotten in the ...
5 years, 2 months ago (2015-09-24 22:49:27 UTC) #3
Jennifer Messerly
5 years, 2 months ago (2015-09-25 17:03:14 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
59eb287389641b662b9fbb8d3ee541088aaa98d1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698