Files
sdk/pkg/front_end/test/extensions/data/patching/main.dart
T
Johnni Winther 137c7b6c84 [cfe] Explicitly run front_end unittest without non-nullable
This prepares front_end unittests for turning on non-nullable by default.

Change-Id: I9588a2d026ab9f5b1dcf08a140d25bd5dca3d5bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168346
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-10-20 13:13:33 +00:00

26 lines
860 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.
// @dart = 2.9
/*library: scope=[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;
}