c818059287
Fixes #44598. Change-Id: I6bccf4f5448de024f27d0ed1ba51c730e22b6fe9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178020 Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
11 lines
280 B
Dart
11 lines
280 B
Dart
import "load_library_wrong_args_lib.dart" deferred as lib;
|
|
|
|
void main() {
|
|
// Loadlibrary should be called without arguments.
|
|
lib.loadLibrary(10);
|
|
//^
|
|
// [cfe] 'loadLibrary' takes no arguments.
|
|
// ^^
|
|
// [analyzer] COMPILE_TIME_ERROR.EXTRA_POSITIONAL_ARGUMENTS
|
|
}
|