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

Issue 2900553003: Fix type inference of factory constructor invocations. (Closed)

Created:
3 years, 7 months ago by Paul Berry
Modified:
3 years, 7 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix type inference of factory constructor invocations. Factory constructors are represented as static methods with dynamic return type; in order to type infer them properly we must use the type of the enclosing class as the return type (with type parameters substituted appropriately). R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/4b9485db73e2bb8179c1a37750c20f8123ccd22c

Patch Set 1 #

Total comments: 2

Messages

Total messages: 6 (2 generated)
Paul Berry
3 years, 7 months ago (2017-05-21 22:51:36 UTC) #2
scheglov
LGTM https://codereview.chromium.org/2900553003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart File pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart (right): https://codereview.chromium.org/2900553003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart#newcode298 pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart:298: new Set(); Do we need this statement?
3 years, 7 months ago (2017-05-22 05:27:33 UTC) #3
Paul Berry
https://codereview.chromium.org/2900553003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart File pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart (right): https://codereview.chromium.org/2900553003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart#newcode298 pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart:298: new Set(); On 2017/05/22 05:27:33, scheglov wrote: > Do ...
3 years, 7 months ago (2017-05-22 18:09:57 UTC) #4
Paul Berry
3 years, 7 months ago (2017-05-22 18:18:38 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4b9485db73e2bb8179c1a37750c20f8123ccd22c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698