mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Add a missing import to the known prefix error tests.
Change-Id: I29656ba5a995a946d14bec6726459873ef9d1f49 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201223 Auto-Submit: Bob Nystrom <rnystrom@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
parent
f462c16326
commit
e9b9959d36
2 changed files with 23 additions and 31 deletions
|
@ -15,6 +15,10 @@ import "package:expect/expect.dart";
|
|||
import 'built_in_prefix_library_async.dart' as async;
|
||||
import 'built_in_prefix_library_await.dart' as await;
|
||||
import 'built_in_prefix_library_hide.dart' as hide;
|
||||
import 'built_in_prefix_library_library.dart' as library;
|
||||
// ^^^^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
|
||||
// [cfe] Can't use 'library' as a name here.
|
||||
import 'built_in_prefix_library_of.dart' as of;
|
||||
import 'built_in_prefix_library_on.dart' as on;
|
||||
import 'built_in_prefix_library_show.dart' as show;
|
||||
|
@ -22,52 +26,44 @@ import 'built_in_prefix_library_sync.dart' as sync;
|
|||
import 'built_in_prefix_library_yield.dart' as yield;
|
||||
|
||||
async<dynamic> _async = new async.A();
|
||||
// [error line 24, column 1, length 5]
|
||||
// [error line 28, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'async' isn't a type.
|
||||
// [error line 24, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
await<dynamic> _await = new await.A();
|
||||
// [error line 30, column 1, length 5]
|
||||
// [error line 33, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'await' isn't a type.
|
||||
// [error line 30, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
hide<dynamic> _hide = new hide.A();
|
||||
// [error line 36, column 1, length 4]
|
||||
// [error line 38, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'hide' isn't a type.
|
||||
// [error line 36, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
of<dynamic> _of = new of.A();
|
||||
// [error line 42, column 1, length 2]
|
||||
// [error line 43, column 1, length 2]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'of' isn't a type.
|
||||
// [error line 42, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
on<dynamic> _on = new on.A();
|
||||
// [error line 48, column 1, length 2]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'on' isn't a type.
|
||||
// [error line 48, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
show<dynamic> _show = new show.A();
|
||||
// [error line 54, column 1, length 4]
|
||||
// [error line 53, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'show' isn't a type.
|
||||
// [error line 54, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
sync<dynamic> _sync = new sync.A();
|
||||
// [error line 60, column 1, length 4]
|
||||
// [error line 58, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'sync' isn't a type.
|
||||
// [error line 60, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
yield<dynamic> _yield = new yield.A();
|
||||
// [error line 66, column 1, length 5]
|
||||
// [error line 63, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'yield' isn't a type.
|
||||
// [error line 66, column 1]
|
||||
// [cfe] Expected 0 type arguments.
|
||||
|
||||
async.B<async> _B_async = new async.B();
|
||||
|
@ -107,49 +103,41 @@ async.B<async<dynamic>> _B2_async = new async.B();
|
|||
// ^^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'async' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
await.B<await<dynamic>> _B2_await = new await.B();
|
||||
// ^^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'await' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
hide.B<hide<dynamic>> _B2_hide = new hide.B();
|
||||
// ^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'hide' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
of.B<of<dynamic>> _B2_of = new of.B();
|
||||
// ^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'of' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
on.B<on<dynamic>> _B2_on = new on.B();
|
||||
// ^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'on' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
show.B<show<dynamic>> _B2_show = new show.B();
|
||||
// ^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'show' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
sync.B<sync<dynamic>> _B2_sync = new sync.B();
|
||||
// ^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'sync' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
yield.B<yield<dynamic>> _B2_yield = new yield.B();
|
||||
// ^^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
|
||||
// [cfe] 'yield' isn't a type.
|
||||
// ^
|
||||
// [cfe] Expected 0 type arguments.
|
||||
|
||||
main() {
|
||||
|
|
|
@ -17,6 +17,10 @@ import "package:expect/expect.dart";
|
|||
import 'built_in_prefix_library_async.dart' as async;
|
||||
import 'built_in_prefix_library_await.dart' as await;
|
||||
import 'built_in_prefix_library_hide.dart' as hide;
|
||||
import 'built_in_prefix_library_library.dart' as library;
|
||||
// ^^^^^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
|
||||
// [cfe] Can't use 'library' as a name here.
|
||||
import 'built_in_prefix_library_of.dart' as of;
|
||||
import 'built_in_prefix_library_on.dart' as on;
|
||||
import 'built_in_prefix_library_show.dart' as show;
|
||||
|
@ -24,42 +28,42 @@ import 'built_in_prefix_library_sync.dart' as sync;
|
|||
import 'built_in_prefix_library_yield.dart' as yield;
|
||||
|
||||
async<dynamic> _async = new async.A();
|
||||
// [error line 26, column 1, length 5]
|
||||
// [error line 30, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'async' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
await<dynamic> _await = new await.A();
|
||||
// [error line 31, column 1, length 5]
|
||||
// [error line 35, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'await' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
hide<dynamic> _hide = new hide.A();
|
||||
// [error line 36, column 1, length 4]
|
||||
// [error line 40, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'hide' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
of<dynamic> _of = new of.A();
|
||||
// [error line 41, column 1, length 2]
|
||||
// [error line 45, column 1, length 2]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'of' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
on<dynamic> _on = new on.A();
|
||||
// [error line 46, column 1, length 2]
|
||||
// [error line 50, column 1, length 2]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'on' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
show<dynamic> _show = new show.A();
|
||||
// [error line 51, column 1, length 4]
|
||||
// [error line 55, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'show' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
sync<dynamic> _sync = new sync.A();
|
||||
// [error line 56, column 1, length 4]
|
||||
// [error line 60, column 1, length 4]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'sync' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
yield<dynamic> _yield = new yield.A();
|
||||
// [error line 61, column 1, length 5]
|
||||
// [error line 65, column 1, length 5]
|
||||
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
|
||||
// [cfe] 'yield' isn't a type.
|
||||
// [cfe] Expected 0 type arguments.
|
||||
|
|
Loading…
Reference in a new issue