Files
Johnni Winther 6526b26ddb [cfe] Convert extension_test into expectation tests
With the Builder model refactoring this test made less and less sense on its own. Removing the test enables the removal for properties that don't fit well with the new Builder model. The existing tests have been converted to expectation tests to preserve test coverage.

Change-Id: I0234a110321187870ad969236f58aae634f614cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/418022
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2025-03-27 02:41:25 -07:00

40 lines
997 B
Dart

// Copyright (c) 2025, 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 String {
external int instanceMethod();
external T genericInstanceMethod<T>(T t);
external static int staticMethod();
external static T genericStaticMethod<T>(T t);
external int get instanceProperty;
external void set instanceProperty(int value);
external static int get staticProperty;
external static void set staticProperty(int value);
}
extension GenericExtension<T> on T {
external int instanceMethod();
external T genericInstanceMethod<T>(T t);
external static int staticMethod();
external static T genericStaticMethod<T>(T t);
external int get instanceProperty;
external void set instanceProperty(int value);
external static int get staticProperty;
external static void set staticProperty(int value);
}