Files
sdk/pkg/front_end/testcases/nnbd/extension_never.dart
T
Johnni Winther f369194255 [cfe] Add test for extension on Never
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>
2020-06-16 08:10:24 +00:00

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() {}