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

Issue 2302573003: Check for non-null assignment when checking casts (Closed)

Created:
4 years, 3 months ago by stanm
Modified:
4 years, 3 months ago
Reviewers:
Jennifer Messerly
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Check for non-null assignment when checking casts The correct behaviour is to check for non-null assignment every time we check for downcasts, so I moved the invocation. BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/7ee54976be3d8772c9de22908e22c107bb35048d

Patch Set 1 #

Patch Set 2 : Add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M pkg/analyzer/lib/src/task/strong/checker.dart View 1 3 chunks +6 lines, -7 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/non_null_checker_test.dart View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
stanm
Ran test/test_all.dart and the number of failures/errors didn't change w.r.t. previous commit (7/1).
4 years, 3 months ago (2016-09-01 01:23:18 UTC) #2
Jennifer Messerly
On 2016/09/01 01:23:18, stanm wrote: > Ran test/test_all.dart and the number of failures/errors didn't change ...
4 years, 3 months ago (2016-09-01 01:28:54 UTC) #3
Jennifer Messerly
On 2016/09/01 01:23:18, stanm wrote: > Ran test/test_all.dart and the number of failures/errors didn't change ...
4 years, 3 months ago (2016-09-01 01:28:55 UTC) #4
stanm
Added tests, but cannot make compound statement have an INVALID_ASSIGNMENT error. Any suggestions?
4 years, 3 months ago (2016-09-01 20:37:08 UTC) #5
Jennifer Messerly
LGTM. Yeah compound assignment might need another fix before they're exposed.
4 years, 3 months ago (2016-09-01 20:39:19 UTC) #6
stanm
4 years, 3 months ago (2016-09-01 22:25:33 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7ee54976be3d8772c9de22908e22c107bb35048d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698