6526b26ddb
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>
61 lines
1.1 KiB
Dart
61 lines
1.1 KiB
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.
|
|
|
|
// ignore: import_internal_library
|
|
import 'dart:_internal';
|
|
|
|
@patch
|
|
extension Extension on String {
|
|
@patch
|
|
int instanceMethod() => 42;
|
|
|
|
@patch
|
|
T genericInstanceMethod<T>(T t) => t;
|
|
|
|
@patch
|
|
static int staticMethod() => 87;
|
|
|
|
@patch
|
|
static T genericStaticMethod<T>(T t) => t;
|
|
|
|
@patch
|
|
int get instanceProperty => 123;
|
|
|
|
@patch
|
|
void set instanceProperty(int value) {}
|
|
|
|
@patch
|
|
static int get staticProperty => 237;
|
|
|
|
@patch
|
|
static void set staticProperty(int value) {}
|
|
}
|
|
|
|
@patch
|
|
extension GenericExtension<T> on T {
|
|
@patch
|
|
int instanceMethod() => 42;
|
|
|
|
@patch
|
|
T genericInstanceMethod<T>(T t) => t;
|
|
|
|
@patch
|
|
static int staticMethod() => 87;
|
|
|
|
@patch
|
|
static T genericStaticMethod<T>(T t) => t;
|
|
|
|
@patch
|
|
int get instanceProperty => 123;
|
|
|
|
@patch
|
|
void set instanceProperty(int value) {}
|
|
|
|
@patch
|
|
static int get staticProperty => 237;
|
|
|
|
@patch
|
|
static void set staticProperty(int value) {}
|
|
}
|