726904ac17
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>
41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
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=[
|
|
ClashingExtension,
|
|
UniqueExtension2,
|
|
async.dart.FutureExtensions]*/
|
|
|
|
/*class: ClashingExtension:
|
|
builder-name=ClashingExtension,
|
|
builder-onType=String,
|
|
extension-members=[static staticMethod=ClashingExtension|staticMethod],
|
|
extension-name=ClashingExtension,
|
|
extension-onType=String
|
|
*/
|
|
extension ClashingExtension on String {
|
|
/*member: ClashingExtension|staticMethod:
|
|
builder-name=staticMethod,
|
|
member-name=ClashingExtension|staticMethod
|
|
*/
|
|
static staticMethod() {}
|
|
}
|
|
|
|
/*class: UniqueExtension2:
|
|
builder-name=UniqueExtension2,
|
|
builder-onType=String,
|
|
extension-members=[static staticMethod=UniqueExtension2|staticMethod],
|
|
extension-name=UniqueExtension2,
|
|
extension-onType=String
|
|
*/
|
|
extension UniqueExtension2 on String {
|
|
/*member: UniqueExtension2|staticMethod:
|
|
builder-name=staticMethod,
|
|
member-name=UniqueExtension2|staticMethod
|
|
*/
|
|
static staticMethod() {}
|
|
}
|