DescriptionAdding 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 #
Messages
Total messages: 6 (2 generated)
|