9d2da55f70
Change-Id: I2288a4fd1fa93044436f161f07b9b3fb7ea441f9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250847 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
29 lines
927 B
Dart
29 lines
927 B
Dart
// Copyright (c) 2019, 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.
|
|
|
|
/*library: scope=[
|
|
async.dart.FutureExtensions,
|
|
core.dart.EnumByName,
|
|
core.dart.EnumName,
|
|
origin.dart.Extension,
|
|
origin.dart.GenericExtension]*/
|
|
|
|
// ignore: uri_does_not_exist
|
|
import 'dart:test';
|
|
|
|
main() {
|
|
"".instanceMethod();
|
|
"".genericInstanceMethod<int>(0);
|
|
"".instanceProperty = "".instanceProperty;
|
|
Extension.staticMethod();
|
|
Extension.genericStaticMethod<int>(0);
|
|
Extension.staticProperty = Extension.staticProperty;
|
|
true.instanceMethod();
|
|
true.genericInstanceMethod<int>(0);
|
|
true.instanceProperty = true.instanceProperty;
|
|
GenericExtension.staticMethod();
|
|
GenericExtension.genericStaticMethod<int>(0);
|
|
GenericExtension.staticProperty = GenericExtension.staticProperty;
|
|
}
|