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

Issue 2754423002: Fail inference when an instance field is referenced. (Closed)

Created:
3 years, 9 months ago by scheglov
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fail inference when an instance field is referenced. This is work in progress, I will clean up and document code before committing. But I'd like to know your opinion before moving forward. The new top-level inference rules don't allow using instance fields to perform type inference. So, we need to make this change. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/72c0c779376472a4592892ee9f9b4e85415aca94

Patch Set 1 #

Total comments: 2

Patch Set 2 : Clean up and move tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+627 lines, -835 lines) Patch
M pkg/analyzer/lib/src/summary/link.dart View 1 18 chunks +110 lines, -179 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_const_expr.dart View 1 2 chunks +2 lines, -10 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 3 chunks +35 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/task/strong_mode.dart View 1 6 chunks +58 lines, -4 lines 0 comments Download
M pkg/analyzer/test/src/summary/linker_test.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 8 chunks +5 lines, -36 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 1 4 chunks +10 lines, -105 lines 0 comments Download
M pkg/analyzer/test/src/summary/top_level_inference_test.dart View 1 4 chunks +376 lines, -18 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 9 chunks +20 lines, -10 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 10 chunks +0 lines, -458 lines 0 comments Download
M pkg/analyzer/test/src/task/strong_mode_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 9 months ago (2017-03-17 22:06:24 UTC) #1
Brian Wilkerson
lgtm https://codereview.chromium.org/2754423002/diff/1/pkg/analyzer/test/src/summary/linker_test.dart File pkg/analyzer/test/src/summary/linker_test.dart (right): https://codereview.chromium.org/2754423002/diff/1/pkg/analyzer/test/src/summary/linker_test.dart#newcode351 pkg/analyzer/test/src/summary/linker_test.dart:351: '(D) → dynamic'); Are these tests worth keeping? ...
3 years, 9 months ago (2017-03-17 22:39:42 UTC) #2
scheglov
https://codereview.chromium.org/2754423002/diff/1/pkg/analyzer/test/src/summary/linker_test.dart File pkg/analyzer/test/src/summary/linker_test.dart (right): https://codereview.chromium.org/2754423002/diff/1/pkg/analyzer/test/src/summary/linker_test.dart#newcode351 pkg/analyzer/test/src/summary/linker_test.dart:351: '(D) → dynamic'); On 2017/03/17 22:39:42, Brian Wilkerson wrote: ...
3 years, 9 months ago (2017-03-18 01:54:52 UTC) #3
scheglov
PTAL I've done clean ups I intended to do and moved many tests.
3 years, 9 months ago (2017-03-18 03:46:45 UTC) #4
Brian Wilkerson
lgtm
3 years, 9 months ago (2017-03-18 16:24:51 UTC) #5
scheglov
3 years, 9 months ago (2017-03-18 21:00:35 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
72c0c779376472a4592892ee9f9b4e85415aca94 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698