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>
60 lines
1.8 KiB
Dart
60 lines
1.8 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=[
|
|
AmbiguousExtension1,
|
|
AmbiguousExtension2,
|
|
UnambiguousExtension2,
|
|
async.dart.FutureExtensions]*/
|
|
|
|
/*class: AmbiguousExtension1:
|
|
builder-name=AmbiguousExtension1,
|
|
builder-onType=String,
|
|
extension-members=[
|
|
static ambiguousStaticMethod1=AmbiguousExtension1|ambiguousStaticMethod1],
|
|
extension-name=AmbiguousExtension1,
|
|
extension-onType=String
|
|
*/
|
|
extension AmbiguousExtension1 on String {
|
|
/*member: AmbiguousExtension1|ambiguousStaticMethod1:
|
|
builder-name=ambiguousStaticMethod1,
|
|
member-name=AmbiguousExtension1|ambiguousStaticMethod1
|
|
*/
|
|
static void ambiguousStaticMethod1() {}
|
|
}
|
|
|
|
/*class: AmbiguousExtension2:
|
|
builder-name=AmbiguousExtension2,
|
|
builder-onType=String,
|
|
extension-members=[
|
|
static unambiguousStaticMethod2=AmbiguousExtension2|unambiguousStaticMethod2],
|
|
extension-name=AmbiguousExtension2,
|
|
extension-onType=String
|
|
*/
|
|
extension AmbiguousExtension2 on String {
|
|
/*member: AmbiguousExtension2|unambiguousStaticMethod2:
|
|
builder-name=unambiguousStaticMethod2,
|
|
member-name=AmbiguousExtension2|unambiguousStaticMethod2
|
|
*/
|
|
static void unambiguousStaticMethod2() {}
|
|
}
|
|
|
|
/*class: UnambiguousExtension2:
|
|
builder-name=UnambiguousExtension2,
|
|
builder-onType=String,
|
|
extension-members=[
|
|
static ambiguousStaticMethod2=UnambiguousExtension2|ambiguousStaticMethod2],
|
|
extension-name=UnambiguousExtension2,
|
|
extension-onType=String
|
|
*/
|
|
extension UnambiguousExtension2 on String {
|
|
/*member: UnambiguousExtension2|ambiguousStaticMethod2:
|
|
builder-name=ambiguousStaticMethod2,
|
|
member-name=UnambiguousExtension2|ambiguousStaticMethod2
|
|
*/
|
|
static void ambiguousStaticMethod2() {}
|
|
}
|