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

Issue 2997353002: Adding adjusted `void` tests from CL 2699073003 (Closed)

Created:
3 years, 3 months ago by eernst
Modified:
3 years, 3 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Adding adjusted `void` tests from CL 2699073003 These tests exercise the static and dynamic semantics of `void` used in those new locations where 'generalized void' added support form it. They came from CL 2699073003 and were adjusted to match the result of discussions taken after their creation (in particular, `b ? e1 : e2` was used and expected to be allowed, but it is now a static warning in Dart 1.x and a compile-time error in Dart 2). The tests are located in tests/language_2, and they are testing Dart 2 behavior. In particular, usage of a value of static type `void` is a compile-time error rather than a static warning, and `void` is considered equivalent to `Object` in subtype checks, both statically and dynamically. We do not currently have any tools which will conform to the expectations of these tests. Status files have been adjested accordingly. R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/811ae1855d747a6a4c1b83b2027cd862a0ba870e

Patch Set 1 #

Patch Set 2 : Adjusted status entries for analyzer #

Total comments: 2

Patch Set 3 : Review response #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -0 lines) Patch
M tests/language_2/language_2.status View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M tests/language_2/language_2_analyzer.status View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M tests/language_2/language_2_dartdevc.status View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A tests/language_2/void_type_callbacks_test.dart View 1 chunk +40 lines, -0 lines 0 comments Download
A tests/language_2/void_type_function_types_test.dart View 1 2 1 chunk +108 lines, -0 lines 0 comments Download
A tests/language_2/void_type_override_test.dart View 1 chunk +122 lines, -0 lines 0 comments Download
A tests/language_2/void_type_usage_test.dart View 1 chunk +360 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
eernst
3 years, 3 months ago (2017-08-22 13:23:22 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/2997353002/diff/20001/tests/language_2/void_type_function_types_test.dart File tests/language_2/void_type_function_types_test.dart (right): https://codereview.chromium.org/2997353002/diff/20001/tests/language_2/void_type_function_types_test.dart#newcode64 tests/language_2/void_type_function_types_test.dart:64: throwsInChecked(() { expectsH(f); }); //# 00: compile-time error ...
3 years, 3 months ago (2017-08-25 07:40:46 UTC) #3
eernst
Review response. https://codereview.chromium.org/2997353002/diff/20001/tests/language_2/void_type_function_types_test.dart File tests/language_2/void_type_function_types_test.dart (right): https://codereview.chromium.org/2997353002/diff/20001/tests/language_2/void_type_function_types_test.dart#newcode64 tests/language_2/void_type_function_types_test.dart:64: throwsInChecked(() { expectsH(f); }); //# 00: compile-time ...
3 years, 3 months ago (2017-08-25 07:49:44 UTC) #4
eernst
3 years, 3 months ago (2017-08-25 08:03:29 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
811ae1855d747a6a4c1b83b2027cd862a0ba870e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698