e1bf9c3e88
`void` will be a reserved word in Dart 2.0 (it always was in Dart 1.x). Remove it as an exported name from dart:core because it could be accidentally hidden. Bug: https://github.com/dart-lang/sdk/issues/31480 Change-Id: Id804cccbc144f3c8ba2fc9898a3b5c79e238ab36 Reviewed-on: https://dart-review.googlesource.com/24940 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Kevin Millikin <kmillikin@google.com>
16 lines
473 B
Dart
16 lines
473 B
Dart
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/*@testedFeatures=warning*/
|
|
|
|
// dynamic is treated as a name exported by dart:core. void is not treated as a
|
|
// name exported by dart:core.
|
|
|
|
import 'dart:core' show int;
|
|
|
|
/*@warning=TypeNotFound*/ dynamic testDynamic() => 0;
|
|
void testVoid() {}
|
|
|
|
main() {}
|