f369194255
Closes #42180 Change-Id: I690d3419d94bfc593f77f0cea75274cb20182ba2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151229 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
19 lines
439 B
Dart
19 lines
439 B
Dart
// Copyright (c) 2020, 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.
|
|
|
|
extension Extension on Never {
|
|
extensionMethod() {}
|
|
}
|
|
|
|
implicitAccess(Never never) {
|
|
never.extensionMethod();
|
|
never.missingMethod();
|
|
}
|
|
|
|
explicitAccess(Never never) {
|
|
Extension(never).extensionMethod();
|
|
}
|
|
|
|
main() {}
|