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

Issue 2900873002: Fix type inference of assignments to local variables. (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 assignments to local variables. If the variable's type was inferred, the inferred type should be used as the inference context for the RHS expression. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/79b4382784a55e0a562d8153ea957867725b878c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -5 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 2 chunks +1 line, -3 lines 0 comments Download
M pkg/front_end/test/fasta/strong.status View 1 chunk +0 lines, -2 lines 0 comments Download
A pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.strong.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.dart.strong.expect View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
3 years, 7 months ago (2017-05-22 19:49:27 UTC) #2
scheglov
LGTM
3 years, 7 months ago (2017-05-22 19:53:14 UTC) #3
Paul Berry
3 years, 7 months ago (2017-05-22 19:54:34 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
79b4382784a55e0a562d8153ea957867725b878c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698