3befe682e9
Bug: b/195806584 Change-Id: I0d607ceef8d17433df00f5a71cc5b37d6f5c899f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209907 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
11 lines
284 B
Dart
11 lines
284 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
|
|
}
|