Files
sdk/pkg/front_end/test/extensions/data/prefix/lib3.dart
T
Lasse R.H. Nielsen 726904ac17 Add onError extension method to Future.
Provides better typing than `catchError`.

Change-Id: If0d4487b7c3a499160fb719740a1d65c0545024d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151512
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-01-21 23:13:56 +00:00

25 lines
711 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=[
ShownExtension3,
async.dart.FutureExtensions]*/
/*class: ShownExtension3:
builder-name=ShownExtension3,
builder-onType=String,
extension-members=[static staticMethod=ShownExtension3|staticMethod],
extension-name=ShownExtension3,
extension-onType=String
*/
extension ShownExtension3 on String {
/*member: ShownExtension3|staticMethod:
builder-name=staticMethod,
member-name=ShownExtension3|staticMethod
*/
static void staticMethod() {}
}