45205d673b
This avoids unnecessary dependency on libraries outside the tests. This replaces https://dart-review.googlesource.com/c/sdk/+/292893 Change-Id: Iffe9f08ee906db87a44bea55ffdcd66e3d8cd9e7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293640 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
24 lines
786 B
Dart
24 lines
786 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: */
|
|
|
|
// 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;
|
|
}
|