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

Issue 3003933002: Migrate block 116. (Closed)

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

Description

Migrate block 116. Interesting bits: - Removed some behavior that is now unreachable in the presence of type errors. - Made if_null_behavior_test not a multitest since it doesn't need to be any more. - Likewise, if_null_evaluation_order_test never needed to be a multitest. R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/a719910d78357557bca925822d938753d9de1a62

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -2042 lines) Patch
D tests/language/hidden_import_lib.dart View 1 chunk +0 lines, -7 lines 0 comments Download
D tests/language/hidden_import_test.dart View 1 chunk +0 lines, -17 lines 0 comments Download
D tests/language/identical_closure2_test.dart View 1 chunk +0 lines, -24 lines 0 comments Download
D tests/language/identical_closure_test.dart View 1 chunk +0 lines, -44 lines 0 comments Download
D tests/language/identical_const_test.dart View 1 chunk +0 lines, -39 lines 0 comments Download
D tests/language/identical_test.dart View 1 chunk +0 lines, -39 lines 0 comments Download
D tests/language/if_and_test.dart View 1 chunk +0 lines, -33 lines 0 comments Download
D tests/language/if_null_assignment_behavior_test.dart View 1 chunk +0 lines, -215 lines 0 comments Download
D tests/language/if_null_assignment_helper.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D tests/language/if_null_assignment_static_test.dart View 1 chunk +0 lines, -179 lines 0 comments Download
D tests/language/if_null_behavior_test.dart View 1 chunk +0 lines, -57 lines 0 comments Download
D tests/language/if_null_evaluation_order_test.dart View 1 chunk +0 lines, -36 lines 0 comments Download
D tests/language/if_null_precedence_test.dart View 1 chunk +0 lines, -64 lines 0 comments Download
D tests/language/if_test.dart View 1 chunk +0 lines, -95 lines 0 comments Download
D tests/language/illegal_declaration_test.dart View 1 chunk +0 lines, -7 lines 0 comments Download
D tests/language/illegal_initializer_test.dart View 1 chunk +0 lines, -47 lines 0 comments Download
D tests/language/illegal_invocation_lib.dart View 1 chunk +0 lines, -3 lines 0 comments Download
D tests/language/illegal_invocation_test.dart View 1 chunk +0 lines, -15 lines 0 comments Download
M tests/language/language_dart2js.status View 6 chunks +0 lines, -59 lines 0 comments Download
A + tests/language_2/hidden_import_lib.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/hidden_import_test.dart View 0 chunks +-1 lines, --1 lines 2 comments Download
A + tests/language_2/identical_closure2_test.dart View 0 chunks +-1 lines, --1 lines 4 comments Download
A + tests/language_2/identical_closure_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/identical_const_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
A + tests/language_2/identical_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/if_and_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/if_null_assignment_behavior_test.dart View 2 chunks +4 lines, -5 lines 0 comments Download
A + tests/language_2/if_null_assignment_helper.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A tests/language_2/if_null_assignment_static_test.dart View 1 chunk +153 lines, -0 lines 0 comments Download
A tests/language_2/if_null_behavior_test.dart View 1 chunk +53 lines, -0 lines 0 comments Download
A + tests/language_2/if_null_evaluation_order_test.dart View 1 chunk +2 lines, -6 lines 0 comments Download
A + tests/language_2/if_null_precedence_test.dart View 2 chunks +10 lines, -34 lines 2 comments Download
A + tests/language_2/if_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/illegal_declaration_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A + tests/language_2/illegal_initializer_test.dart View 1 chunk +8 lines, -8 lines 0 comments Download
A + tests/language_2/illegal_invocation_lib.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/illegal_invocation_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language_2/language_2_analyzer.status View 2 chunks +66 lines, -1 line 0 comments Download
M tests/language_2/language_2_dart2js.status View 7 chunks +93 lines, -1 line 0 comments Download
M tests/language_2/language_2_dartdevc.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language_2/language_2_kernel.status View 1 chunk +36 lines, -0 lines 2 comments Download
M tests/language_2/language_2_precompiled.status View 1 chunk +34 lines, -0 lines 0 comments Download
M tests/language_2/language_2_vm.status View 2 chunks +34 lines, -0 lines 0 comments Download
D tests/language_strong/hidden_import_lib.dart View 1 chunk +0 lines, -7 lines 0 comments Download
D tests/language_strong/hidden_import_test.dart View 1 chunk +0 lines, -17 lines 0 comments Download
D tests/language_strong/identical_closure2_test.dart View 1 chunk +0 lines, -24 lines 0 comments Download
D tests/language_strong/identical_closure_test.dart View 1 chunk +0 lines, -44 lines 0 comments Download
D tests/language_strong/identical_const_test.dart View 1 chunk +0 lines, -39 lines 0 comments Download
D tests/language_strong/identical_test.dart View 1 chunk +0 lines, -39 lines 0 comments Download
D tests/language_strong/if_and_test.dart View 1 chunk +0 lines, -33 lines 0 comments Download
D tests/language_strong/if_null_assignment_behavior_test.dart View 1 chunk +0 lines, -215 lines 0 comments Download
D tests/language_strong/if_null_assignment_helper.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D tests/language_strong/if_null_assignment_static_test.dart View 1 chunk +0 lines, -176 lines 0 comments Download
D tests/language_strong/if_null_behavior_test.dart View 1 chunk +0 lines, -57 lines 0 comments Download
D tests/language_strong/if_null_evaluation_order_test.dart View 1 chunk +0 lines, -36 lines 0 comments Download
D tests/language_strong/if_null_precedence_test.dart View 1 chunk +0 lines, -64 lines 0 comments Download
D tests/language_strong/if_test.dart View 1 chunk +0 lines, -95 lines 0 comments Download
D tests/language_strong/illegal_declaration_test.dart View 1 chunk +0 lines, -7 lines 0 comments Download
D tests/language_strong/illegal_initializer_test.dart View 1 chunk +0 lines, -47 lines 0 comments Download
D tests/language_strong/illegal_invocation_lib.dart View 1 chunk +0 lines, -3 lines 0 comments Download
D tests/language_strong/illegal_invocation_test.dart View 1 chunk +0 lines, -15 lines 0 comments Download
M tests/language_strong/language_strong.status View 2 chunks +0 lines, -10 lines 0 comments Download
M tests/language_strong/language_strong_kernel.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Bob Nystrom
3 years, 3 months ago (2017-08-25 23:28:32 UTC) #2
Bob Nystrom
Ping!
3 years, 3 months ago (2017-08-29 00:18:51 UTC) #3
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/3003933002/diff/1/tests/language_2/hidden_import_test.dart File tests/language_2/hidden_import_test.dart (right): https://codereview.chromium.org/3003933002/diff/1/tests/language_2/hidden_import_test.dart#newcode15 tests/language_2/hidden_import_test.dart:15: new Future(); //# 01: static type warning Why ...
3 years, 3 months ago (2017-08-29 07:43:40 UTC) #4
Bob Nystrom
Committed patchset #1 (id:1) manually as a719910d78357557bca925822d938753d9de1a62.
3 years, 3 months ago (2017-08-29 22:50:55 UTC) #6
Bob Nystrom
3 years, 3 months ago (2017-08-30 18:21:23 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/3003933002/diff/1/tests/language_2/hidden_imp...
File tests/language_2/hidden_import_test.dart (right):

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/hidden_imp...
tests/language_2/hidden_import_test.dart:15: new Future(); //# 01: static type
warning
On 2017/08/29 07:43:40, Lasse Reichstein Nielsen wrote:
> Why is there type warning?

<shrug> There's no change in this test. I think we've warned on shadowing a
dart: imported name for a long time.

> I assumed that Dart 2 removed all warnings.

It removes almost all, but it looks like there are a couple of things that
remain warnings. Another example is a getter and setter with the same name whose
property don't match. It's not an error because they don't need to match for
soundness, but the warning is still there.

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/identical_...
File tests/language_2/identical_closure2_test.dart (right):

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/identical_...
tests/language_2/identical_closure2_test.dart:12: }
On 2017/08/29 07:43:40, Lasse Reichstein Nielsen wrote:
> Point class isn't used.

Done.

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/identical_...
tests/language_2/identical_closure2_test.dart:14: main() {
On 2017/08/29 07:43:40, Lasse Reichstein Nielsen wrote:
> Add comment and/or TODO that this doesn't work when compiled to JS.

Done. Also, there are status entries disabling this on dart2js and dartdevc, at
least one of which mentions the bigints bug.

> The numbers seem to be picked explicitly to not work in JS.

Yeah. My guess is they wanted to test that identical is correct in bigints on
the VM?

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/if_null_pr...
File tests/language_2/if_null_precedence_test.dart (right):

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/if_null_pr...
tests/language_2/if_null_precedence_test.dart:25: Expect.equals(2, true ?? 1 ? 2
: 3);
On 2017/08/29 07:43:40, Lasse Reichstein Nielsen wrote:
> Should this be a type problem in Dart 2? 
> Or is it an implicit downcast from Object to bool of (true ?? 1)?

Yes, I believe that's right. You get Object as the LUB of true and 1, then
downcast in the Boolean conversion for ?:.

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/language_2...
File tests/language_2/language_2_kernel.status (right):

https://codereview.chromium.org/3003933002/diff/1/tests/language_2/language_2...
tests/language_2/language_2_kernel.status:67: if_null_evaluation_order_test:
Crash # VM does not support BottomType
On 2017/08/29 07:43:40, Lasse Reichstein Nielsen wrote:
> Worrisome because there shouldn't be any "bottom" type in that test. The type
of
> the `null` literal is Null these days, not bottom (unlike the type of `throw
0`
> which is still non-nullable bottom).

Oops, that was a mistake on my part. This is passing now. I just didn't update
the status correctly. (See the next line.)

Powered by Google App Engine
This is Rietveld 408576698