Files
Johnni Winther 60ea089c87 [cfe] Handle patch type parameters through fragments
Change-Id: I53bcab1b460737d756e9291ff7b3029c281ebb3b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/417742
Reviewed-by: Jens Johansen <jensj@google.com>
2025-03-26 01:41:15 -07:00

27 lines
762 B
Dart

// Copyright (c) 2023, 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
@pragma('patch-class')
class Class<@pragma('patch-class-type-variable') T> {
@patch
@pragma('patch-constructor')
external Class();
@patch
@pragma('patch-procedure')
external void method<@pragma('patch-method-type-variable') S>();
}
@patch
@pragma('patch-extension')
extension Extension<@pragma('patch-extension-type-variable') T> on int {
@patch
@pragma('patch-extension-method')
external void method<@pragma('patch-extension-method-type-variable') S>();
}