diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart index 01706664d84..8af1e79e091 100644 --- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart +++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart @@ -684,7 +684,11 @@ class BodyBuilder extends ScopeListener body, fasta.messageSetterWithWrongNumberOfFormals); } } - if (!builder.isExternal) { + // No-such-method forwarders get their bodies injected during outline + // buliding, so we should skip them here. + bool isNoSuchMethodForwarder = (builder.function.parent is Procedure && + (builder.function.parent as Procedure).isNoSuchMethodForwarder); + if (!builder.isExternal && !isNoSuchMethodForwarder) { builder.body = body; } else { if (body != null) { diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart index 59f4546b949..4fa7014dd2c 100644 --- a/pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart +++ b/pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart @@ -8,21 +8,27 @@ import 'package:kernel/ast.dart' show Class, Constructor, + ThisExpression, DartType, DynamicType, Expression, Field, FunctionNode, InterfaceType, + AsExpression, ListLiteral, Member, Name, Procedure, + ReturnStatement, + VoidType, + MethodInvocation, ProcedureKind, StaticGet, Supertype, TypeParameter, TypeParameterType, + Arguments, VariableDeclaration; import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; @@ -85,6 +91,8 @@ import 'kernel_builder.dart' import 'redirecting_factory_body.dart' show RedirectingFactoryBody; +import 'kernel_target.dart' show KernelTarget; + abstract class KernelClassBuilder extends ClassBuilder { KernelClassBuilder actualOrigin; @@ -374,20 +382,46 @@ abstract class KernelClassBuilder noSuchMethod.enclosingClass.superclass != null; } - void addNoSuchMethodForwarderForProcedure( - Procedure procedure, ClassHierarchy hierarchy) { + void transformProcedureToNoSuchMethodForwarder( + Member noSuchMethodInterface, KernelTarget target, Procedure procedure) { + String prefix = + procedure.isGetter ? 'get:' : procedure.isSetter ? 'set:' : ''; + Expression invocation = target.backendTarget.instantiateInvocation( + target.loader.coreTypes, + new ThisExpression(), + prefix + procedure.name.name, + new Arguments.forwarded(procedure.function), + procedure.fileOffset, + /*isSuper=*/ false); + Expression result = new MethodInvocation(new ThisExpression(), + noSuchMethodName, new Arguments([invocation]), noSuchMethodInterface) + ..fileOffset = procedure.fileOffset; + if (procedure.function.returnType is! VoidType) { + result = new AsExpression(result, procedure.function.returnType) + ..isTypeError = true + ..fileOffset = procedure.fileOffset; + } + procedure.function.body = new ReturnStatement(result) + ..fileOffset = procedure.fileOffset; + procedure.function.body.parent = procedure.function; + + procedure.isAbstract = false; + procedure.isNoSuchMethodForwarder = true; + } + + void addNoSuchMethodForwarderForProcedure(Member noSuchMethod, + KernelTarget target, Procedure procedure, ClassHierarchy hierarchy) { CloneWithoutBody cloner = new CloneWithoutBody( typeSubstitution: getSubstitutionMap( hierarchy.getClassAsInstanceOf(cls, procedure.enclosingClass))); Procedure cloned = cloner.clone(procedure); - cloned.isAbstract = true; - cloned.isNoSuchMethodForwarder = true; - + transformProcedureToNoSuchMethodForwarder(noSuchMethod, target, cloned); cls.procedures.add(cloned); cloned.parent = cls; } - void addNoSuchMethodForwarders(ClassHierarchy hierarchy) { + void addNoSuchMethodForwarders( + KernelTarget target, ClassHierarchy hierarchy) { if (!hasUserDefinedNoSuchMethod(cls, hierarchy)) { return; } @@ -435,14 +469,20 @@ abstract class KernelClassBuilder List concrete = hierarchy.getDispatchTargets(cls); List declared = hierarchy.getDeclaredMembers(cls); + + Member noSuchMethod = ClassHierarchy.findMemberByName( + hierarchy.getInterfaceMembers(cls), noSuchMethodName); + for (Member member in hierarchy.getInterfaceMembers(cls)) { if (member is Procedure && ClassHierarchy.findMemberByName(concrete, member.name) == null && !existingForwardersNames.contains(member.name)) { if (ClassHierarchy.findMemberByName(declared, member.name) != null) { - member.isNoSuchMethodForwarder = true; + transformProcedureToNoSuchMethodForwarder( + noSuchMethod, target, member); } else { - addNoSuchMethodForwarderForProcedure(member, hierarchy); + addNoSuchMethodForwarderForProcedure( + noSuchMethod, target, member, hierarchy); } existingForwardersNames.add(member.name); } @@ -459,9 +499,11 @@ abstract class KernelClassBuilder !existingSetterForwardersNames.contains(member.name)) { if (ClassHierarchy.findMemberByName(declaredSetters, member.name) != null) { - member.isNoSuchMethodForwarder = true; + transformProcedureToNoSuchMethodForwarder( + noSuchMethod, target, member); } else { - addNoSuchMethodForwarderForProcedure(member, hierarchy); + addNoSuchMethodForwarderForProcedure( + noSuchMethod, target, member, hierarchy); } existingSetterForwardersNames.add(member.name); } diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart index 687a738043b..96c829aa64c 100644 --- a/pkg/front_end/lib/src/fasta/source/source_loader.dart +++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart @@ -652,7 +652,7 @@ class SourceLoader extends Loader { for (SourceClassBuilder builder in sourceClasses) { if (builder.library.loader == this) { - builder.addNoSuchMethodForwarders(hierarchy); + builder.addNoSuchMethodForwarders(target, hierarchy); } } ticker.logMs("Added noSuchMethod forwarders"); diff --git a/pkg/front_end/testcases/argument_mismatch.dart.direct.expect b/pkg/front_end/testcases/argument_mismatch.dart.direct.expect index 5d084afcc96..5f3f9aa6aab 100644 --- a/pkg/front_end/testcases/argument_mismatch.dart.direct.expect +++ b/pkg/front_end/testcases/argument_mismatch.dart.direct.expect @@ -4,6 +4,6 @@ import "dart:core" as core; static method foo() → dynamic {} static method test() → dynamic { - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], [null].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], core::List::unmodifiable([null]), core::Map::unmodifiable(const {}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/argument_mismatch.dart.direct.transformed.expect b/pkg/front_end/testcases/argument_mismatch.dart.direct.transformed.expect index 5d084afcc96..5f3f9aa6aab 100644 --- a/pkg/front_end/testcases/argument_mismatch.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/argument_mismatch.dart.direct.transformed.expect @@ -4,6 +4,6 @@ import "dart:core" as core; static method foo() → dynamic {} static method test() → dynamic { - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], [null].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], core::List::unmodifiable([null]), core::Map::unmodifiable(const {}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference/future_then.dart.direct.expect b/pkg/front_end/testcases/inference/future_then.dart.direct.expect index d9c0e0ed577..0f1a65429ec 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then.dart.direct.transformed.expect index 80a20d39918..fabae4866b6 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then.dart.outline.expect b/pkg/front_end/testcases/inference/future_then.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then.dart.strong.expect b/pkg/front_end/testcases/inference/future_then.dart.strong.expect index b7c6c223b67..25335fa0045 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then.dart.strong.transformed.expect index 5caa1e0d328..75e8e3004ab 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_2.dart.direct.expect index 3290595c806..d72730a57b0 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_2.dart.direct.transformed.expect index 93b4078d80b..b99417ecf7a 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_2.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_2.dart.strong.expect index 264f4524d27..7aeaa13632c 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_2.dart.strong.transformed.expect index 898933280c4..c72e019c0c4 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_3.dart.direct.expect index fc2ec41809a..812ce43d8d9 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_3.dart.direct.transformed.expect index a94ad9cbf8c..316c4e1d993 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_3.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_3.dart.strong.expect index 496a43422df..31cbdbd82bb 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_3.dart.strong.transformed.expect index 78a4a61ce10..d57301691d6 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_4.dart.direct.expect index 627469a9389..8d89349eb6a 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_4.dart.direct.transformed.expect index ee00df939e6..eb770fc6347 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_4.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_4.dart.strong.expect index 0e9ab2651b3..14f461dcad8 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_4.dart.strong.transformed.expect index 03446f50ecf..64bf9ef0781 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_5.dart.direct.expect index cf8341b19b7..f627fa1d5c1 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_5.dart.direct.transformed.expect index 2c79488f1c4..643e4dee62a 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_5.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_5.dart.strong.expect index 60a45b208a6..aa031e46b6d 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_5.dart.strong.transformed.expect index 495a58475b1..dc08b286f9c 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_6.dart.direct.expect index 59eca7da809..f520dd82846 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_6.dart.direct.transformed.expect index 470f6c141a7..dab3243ad9d 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_6.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_6.dart.strong.expect index 03a4550b6a9..79e9a32517a 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_6.dart.strong.transformed.expect index 01b2db8a12c..e9c4c5e5300 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.expect index 6352e0d41a6..34909463c8f 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.transformed.expect index 8b8e2a7ae6a..743d846b92b 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.expect index 08ec64abb84..a112ecb9a33 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.transformed.expect index ff77eeb075e..5eee6940599 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.expect index 4884c6c6c0d..b57a4360531 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.transformed.expect index 77323ea8e1e..dd3da25b6a1 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.expect index 13b1486de49..fb27252f79c 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.transformed.expect index f272bfcd5f5..7b31799ffd8 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.expect index 477583eeb4f..1503bab2301 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.transformed.expect index 4fc92fe14c4..b7fe32ae574 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.expect index af297a2dcb9..d602e12b31d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.transformed.expect index f2c3a2a671f..0316108703f 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.expect index 73ac5c08251..5b2a2e9d7ef 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.transformed.expect index dc2f85ed6e8..054437bc55f 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.expect index b3e8ccc6612..ef26038b31d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.transformed.expect index 6c4ab0960e0..486e890ffb3 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.expect index 32dbcf82ee5..5acac0e0612 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.transformed.expect index d7bf2f2d09f..f8b14b8af83 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.expect index 8425b11603c..79d8f548030 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.transformed.expect index f1cb72017fc..2402c97fcd3 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect index 2fb57b281e8..f7998d72d15 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.transformed.expect index 93c7048c386..db716169110 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect index 47e72b37c93..5a1fbafbf6d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.transformed.expect index 48d519868c9..6392a5b2f09 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f; diff --git a/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.expect index 3f7d35cb0cf..31a300c04d2 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.transformed.expect index f0608c1389e..7089d11f134 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_ifNull.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_ifNull.dart.outline.expect index bf89d40a291..93fc3a46d55 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.expect index 0b1616738e0..f60ad024a32 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.transformed.expect index 186d1fe7729..d9f93b7ed42 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { self::MyFuture f; diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.expect index ad86cf9a2bc..a186e627ce9 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.transformed.expect index ad86cf9a2bc..a186e627ce9 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.outline.expect index dd8d84a6b2a..17ed58e0643 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.expect index e70813f767f..2c50a463c9c 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { self::MyFuture f = self::foo().{self::MyFuture::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.transformed.expect index 5f33f15a23b..10574a3c022 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { self::MyFuture f = self::foo().{self::MyFuture::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.expect index a47a67cc673..9af5a644459 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.transformed.expect index a47a67cc673..9af5a644459 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.outline.expect index dd8d84a6b2a..17ed58e0643 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.expect index 7a3e3e5b6c7..7455691579d 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { self::MyFuture f = self::foo().{self::MyFuture::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.transformed.expect index c45f7a3bc21..4708889c4e2 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method main() → void { self::MyFuture f = self::foo().{self::MyFuture::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.expect index e107ab2e9e6..9bb5a1e7c77 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.transformed.expect index e107ab2e9e6..9bb5a1e7c77 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { dynamic f = self::foo().then((dynamic _) → dynamic => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.outline.expect index f9939e0990f..e716feb3b45 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void ; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.expect index d0de61c7dec..93ba92b9be8 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f = self::foo().{asy::Future::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.transformed.expect index 7784c77b750..e94e70df35d 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method test() → void { asy::Future f = self::foo().{asy::Future::then}((dynamic _) → core::double => 2.3); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect index 2f01968cf26..e310b2a6007 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future async { return x ? 42 : asy::Future::value(42); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.transformed.expect index 5fc5f1977c3..e0ab492ceb6 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future /* originally async */ { final asy::Completer :completer = asy::Completer::sync(); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.outline.expect index 353c1be7e7a..c42c56903be 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future ; diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect index 722f2d6b843..d5179262417 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future async { return (x ?{core::Object} 42 : asy::Future::value(42)) as{TypeError} asy::FutureOr; diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.transformed.expect index 260e803bec0..7396743617e 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future /* originally async */ { final asy::Completer :completer = asy::Completer::sync(); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.expect index e4c0c12ec36..f6b7e57170e 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future async { return x ? 42 : new self::MyFuture::value(42); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.transformed.expect index 3010ada645d..e76948de6d1 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future /* originally async */ { final asy::Completer :completer = asy::Completer::sync(); diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.outline.expect index 353c1be7e7a..c42c56903be 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future ; diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.expect index c539bcdbad0..3b2db0411be 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future async { return (x ?{core::Object} 42 : new self::MyFuture::value(42)) as{TypeError} asy::FutureOr; diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.transformed.expect index ee81fa3e35a..21ff609dcc1 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static method g1(core::bool x) → asy::Future /* originally async */ { final asy::Completer :completer = asy::Completer::sync(); diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.expect index 2bdcc03620f..318bbdd750e 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => asy::Future::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.transformed.expect index 5db5ef3ac77..d8eee134fe5 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => asy::Future::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.outline.expect index 203722cfa93..f7b53243506 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1; diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.expect index c6c46328584..20ed22a0d0a 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future => asy::Future::value(let final dynamic #t1 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:44: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.async::FutureOr'. diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.transformed.expect index e8e745e9ede..fdb66743ba1 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future => asy::Future::value(let final dynamic #t1 = let _ = null in invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:44: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.async::FutureOr'. diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.expect index c76f12afafe..69e105313c9 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.transformed.expect index 87b4be0ebbe..6f2248a9ad8 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.outline.expect index 203722cfa93..f7b53243506 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.expect index 5c9ecaf22b3..8b6ef6c8b70 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.{self::MyFuture::then}((dynamic _) → self::MyFuture => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.transformed.expect index 7eae3ec2594..75626deef22 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field self::MyFuture f; static field asy::Future t1 = self::f.{self::MyFuture::then}((dynamic _) → self::MyFuture => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.expect index 7e039968ec8..1e19b81bae4 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => asy::Future::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.transformed.expect index 665f3eefd66..93d3d55dc9c 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => asy::Future::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.outline.expect index 64f58e36d81..041f7f51467 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.expect index a78fef7f01c..18b327c564c 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future => asy::Future::value(let final dynamic #t1 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:44: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.async::FutureOr'. diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.transformed.expect index ff49091243c..daff4099169 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future => asy::Future::value(let final dynamic #t1 = let _ = null in invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:44: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.async::FutureOr'. diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.expect index a80ae91a1aa..d0f71983839 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.transformed.expect index b9524316e38..9aafedaf386 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.direct.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.then((dynamic _) → dynamic => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.outline.expect index 64f58e36d81..041f7f51467 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.outline.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu ; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError}) → self::MyFuture ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {() → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect index d62bc1bae63..ef07d3cec65 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.{asy::Future::then}((dynamic _) → self::MyFuture => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.transformed.expect index f3bd4178e7e..663958a75cc 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.transformed.expect @@ -12,10 +12,14 @@ class MyFuture extends core::Object implements asy::Futu return null; method then((self::MyFuture::T) → asy::FutureOr f, {core::Function onError = null}) → self::MyFuture return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future; - abstract no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) → core::bool test = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("catchError", const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ whenComplete(() → asy::FutureOr action) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("whenComplete", const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl generic-covariant-interface () → asy::FutureOr onTimeout = null}) → asy::Future + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("timeout", const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}), false)) as{TypeError} asy::Future; + no-such-method-forwarder method /* from org-dartlang-testcase-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withoutType("asStream", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} asy::Stream; } static field asy::Future f; static field asy::Future t1 = self::f.{asy::Future::then}((dynamic _) → self::MyFuture => new self::MyFuture::value("hi")); diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.expect index 77108c2fd13..2a97b62c719 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.transformed.expect index 77108c2fd13..2a97b62c719 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.direct.transformed.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.outline.expect index f5898c43f19..e05ba5ed06a 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.outline.expect @@ -16,7 +16,8 @@ abstract class I extends core::Object { class B extends self::A implements self::I { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.expect index 77108c2fd13..2a97b62c719 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.transformed.expect index 77108c2fd13..2a97b62c719 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.strong.transformed.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.expect index 6de0ac2e634..69280733512 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.transformed.expect index 6de0ac2e634..69280733512 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.direct.transformed.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.outline.expect index a299436d630..f1b794aa1aa 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.outline.expect @@ -17,7 +17,8 @@ class I extends core::Object { class B extends self::A implements self::I { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.expect index 6de0ac2e634..69280733512 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.transformed.expect index 6de0ac2e634..69280733512 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.strong.transformed.expect @@ -20,6 +20,7 @@ class B extends self::A implements self::I { synthetic constructor •() → void : super self::A::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.expect index 7463788ad8c..5d8ddf795c1 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.expect @@ -8,7 +8,8 @@ class I extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::I::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class M extends core::Object { synthetic constructor •() → void @@ -23,7 +24,8 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&M = core::Object with self::M { } @@ -31,6 +33,7 @@ class B extends self::_B&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.transformed.expect index 49caf94c146..eb2d0a0fe14 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.direct.transformed.expect @@ -8,7 +8,8 @@ class I extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::I::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class M extends core::Object { synthetic constructor •() → void @@ -28,7 +29,8 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&M extends core::Object implements self::M { synthetic constructor •() → void @@ -41,6 +43,7 @@ class B extends self::_B&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.outline.expect index f61d4988b40..0901c241dee 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.outline.expect @@ -7,7 +7,8 @@ class I extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::I::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class M extends core::Object { synthetic constructor •() → void @@ -20,14 +21,16 @@ abstract class _A&Object&M = core::Object with self::M { class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&M = core::Object with self::M { } class B extends self::_B&Object&M implements self::I { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.expect index 7463788ad8c..5d8ddf795c1 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.expect @@ -8,7 +8,8 @@ class I extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::I::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class M extends core::Object { synthetic constructor •() → void @@ -23,7 +24,8 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&M = core::Object with self::M { } @@ -31,6 +33,7 @@ class B extends self::_B&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.transformed.expect index 49caf94c146..eb2d0a0fe14 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.strong.transformed.expect @@ -8,7 +8,8 @@ class I extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::I::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class M extends core::Object { synthetic constructor •() → void @@ -28,7 +29,8 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&M extends core::Object implements self::M { synthetic constructor •() → void @@ -41,6 +43,7 @@ class B extends self::_B&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.expect index aeadca54f07..0283bae33dd 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.expect @@ -14,7 +14,8 @@ class A extends core::Object implements self::I { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&A = core::Object with self::A { } diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.transformed.expect index f43923a0aba..bf046d85321 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.direct.transformed.expect @@ -14,7 +14,8 @@ class A extends core::Object implements self::I { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&A extends core::Object implements self::A { synthetic constructor •() → void @@ -22,7 +23,8 @@ abstract class _B&Object&A extends core::Object implements self::A { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class B extends self::_B&Object&A { synthetic constructor •() → void diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.outline.expect index 71c513df8f0..63d5358c2f5 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.outline.expect @@ -12,7 +12,8 @@ class A extends core::Object implements self::I { ; method noSuchMethod(core::Invocation i) → dynamic ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&A = core::Object with self::A { } diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.expect index aeadca54f07..0283bae33dd 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.expect @@ -14,7 +14,8 @@ class A extends core::Object implements self::I { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&A = core::Object with self::A { } diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.transformed.expect index f43923a0aba..bf046d85321 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_dup_from_mixin.dart.strong.transformed.expect @@ -14,7 +14,8 @@ class A extends core::Object implements self::I { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } abstract class _B&Object&A extends core::Object implements self::A { synthetic constructor •() → void @@ -22,7 +23,8 @@ abstract class _B&Object&A extends core::Object implements self::A { ; method noSuchMethod(core::Invocation i) → dynamic return null; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } class B extends self::_B&Object&A { synthetic constructor •() → void diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.expect index 5b3dcdd2151..37a47883fad 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.expect @@ -13,6 +13,7 @@ class A extends self::M { synthetic constructor •() → void : super self::M::•() ; - abstract no-such-method-forwarder method call(core::String s) → void; + no-such-method-forwarder method call(core::String s) → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("call", const [], core::List::unmodifiable([s]), core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.transformed.expect index 5b3dcdd2151..37a47883fad 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.direct.transformed.expect @@ -13,6 +13,7 @@ class A extends self::M { synthetic constructor •() → void : super self::M::•() ; - abstract no-such-method-forwarder method call(core::String s) → void; + no-such-method-forwarder method call(core::String s) → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("call", const [], core::List::unmodifiable([s]), core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.outline.expect index 6fdc38e5a52..b0427dc0015 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.outline.expect @@ -11,7 +11,8 @@ class M extends core::Object { class A extends self::M { synthetic constructor •() → void ; - abstract no-such-method-forwarder method call(core::String s) → void; + no-such-method-forwarder method call(core::String s) → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("call", const [], core::List::unmodifiable([s]), core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.expect index 5b3dcdd2151..37a47883fad 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.expect @@ -13,6 +13,7 @@ class A extends self::M { synthetic constructor •() → void : super self::M::•() ; - abstract no-such-method-forwarder method call(core::String s) → void; + no-such-method-forwarder method call(core::String s) → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("call", const [], core::List::unmodifiable([s]), core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.transformed.expect index 5b3dcdd2151..37a47883fad 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_inherited.dart.strong.transformed.expect @@ -13,6 +13,7 @@ class A extends self::M { synthetic constructor •() → void : super self::M::•() ; - abstract no-such-method-forwarder method call(core::String s) → void; + no-such-method-forwarder method call(core::String s) → void + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("call", const [], core::List::unmodifiable([s]), core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.expect index 82b4b897290..012c9be324b 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.expect @@ -16,6 +16,7 @@ class B extends self::_B&Object&A { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.transformed.expect index 224585c8717..5b1b182a2bf 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.direct.transformed.expect @@ -22,6 +22,7 @@ class B extends self::_B&Object&A { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.outline.expect index 6e0c11efbaa..3a599562234 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.outline.expect @@ -13,7 +13,8 @@ abstract class _B&Object&A = core::Object with self::A { class B extends self::_B&Object&A { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.expect index 82b4b897290..012c9be324b 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.expect @@ -16,6 +16,7 @@ class B extends self::_B&Object&A { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.transformed.expect index 224585c8717..5b1b182a2bf 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/nsm_mixed_in.dart.strong.transformed.expect @@ -22,6 +22,7 @@ class B extends self::_B&Object&A { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.expect index 937b5a6a071..125b323421e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.expect @@ -14,7 +14,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → void : super self::Foo::•() ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → void @@ -22,6 +23,7 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.transformed.expect index 937b5a6a071..125b323421e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.direct.transformed.expect @@ -14,7 +14,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → void : super self::Foo::•() ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → void @@ -22,6 +23,7 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.outline.expect index 1817793bd34..36ff9540abc 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.outline.expect @@ -12,14 +12,16 @@ abstract class Foo extends core::Object { class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → void ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → void ; method _hest() → dynamic ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.expect index 937b5a6a071..125b323421e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.expect @@ -14,7 +14,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → void : super self::Foo::•() ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → void @@ -22,6 +23,7 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.transformed.expect index 937b5a6a071..125b323421e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.strong.transformed.expect @@ -14,7 +14,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → void : super self::Foo::•() ; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → void @@ -22,6 +23,7 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - abstract no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void; + no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void + return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withoutType("_hest", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.expect index dbc0d1d9516..2a23a7b7984 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.expect @@ -14,6 +14,7 @@ class Bar extends self::Foo { ; method noSuchMethod(core::Invocation invocation) → dynamic return null; - abstract no-such-method-forwarder method _foo() → void; + no-such-method-forwarder method _foo() → void + return this.{self::Bar::noSuchMethod}(new core::_InvocationMirror::_withoutType("_foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.transformed.expect index dbc0d1d9516..2a23a7b7984 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.direct.transformed.expect @@ -14,6 +14,7 @@ class Bar extends self::Foo { ; method noSuchMethod(core::Invocation invocation) → dynamic return null; - abstract no-such-method-forwarder method _foo() → void; + no-such-method-forwarder method _foo() → void + return this.{self::Bar::noSuchMethod}(new core::_InvocationMirror::_withoutType("_foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.outline.expect index 8dc462e857c..e8cddd13829 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.outline.expect @@ -12,7 +12,8 @@ class Bar extends self::Foo { ; method noSuchMethod(core::Invocation invocation) → dynamic ; - abstract no-such-method-forwarder method _foo() → void; + no-such-method-forwarder method _foo() → void + return this.{self::Bar::noSuchMethod}(new core::_InvocationMirror::_withoutType("_foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.expect index dbc0d1d9516..2a23a7b7984 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.expect @@ -14,6 +14,7 @@ class Bar extends self::Foo { ; method noSuchMethod(core::Invocation invocation) → dynamic return null; - abstract no-such-method-forwarder method _foo() → void; + no-such-method-forwarder method _foo() → void + return this.{self::Bar::noSuchMethod}(new core::_InvocationMirror::_withoutType("_foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.transformed.expect index dbc0d1d9516..2a23a7b7984 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.strong.transformed.expect @@ -14,6 +14,7 @@ class Bar extends self::Foo { ; method noSuchMethod(core::Invocation invocation) → dynamic return null; - abstract no-such-method-forwarder method _foo() → void; + no-such-method-forwarder method _foo() → void + return this.{self::Bar::noSuchMethod}(new core::_InvocationMirror::_withoutType("_foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.expect index a8c28947482..f043899fa08 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.expect @@ -9,6 +9,7 @@ class A extends core::Object { method noSuchMethod(core::Invocation i) → dynamic { return null; } - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.transformed.expect index a8c28947482..f043899fa08 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.direct.transformed.expect @@ -9,6 +9,7 @@ class A extends core::Object { method noSuchMethod(core::Invocation i) → dynamic { return null; } - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.outline.expect index ef9c2e65a2b..279022d8e1f 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.outline.expect @@ -7,7 +7,8 @@ class A extends core::Object { ; method noSuchMethod(core::Invocation i) → dynamic ; - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.expect index a8c28947482..f043899fa08 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.expect @@ -9,6 +9,7 @@ class A extends core::Object { method noSuchMethod(core::Invocation i) → dynamic { return null; } - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.transformed.expect index a8c28947482..f043899fa08 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/same.dart.strong.transformed.expect @@ -9,6 +9,7 @@ class A extends core::Object { method noSuchMethod(core::Invocation i) → dynamic { return null; } - abstract no-such-method-forwarder method foo() → void; + no-such-method-forwarder method foo() → void + return this.{self::A::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.expect index bf9c46cd29b..f5b732fea47 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.expect @@ -22,6 +22,7 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → core::int; + no-such-method-forwarder method foo() → core::int + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} core::int; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.transformed.expect index 32ef81fef6d..2104e42df8d 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.direct.transformed.expect @@ -28,6 +28,7 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → core::int; + no-such-method-forwarder method foo() → core::int + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} core::int; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.outline.expect index 969a34b3d1e..e96ff1538fb 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.outline.expect @@ -18,7 +18,8 @@ abstract class _A&Object&M = core::Object with self::M { class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void ; - abstract no-such-method-forwarder method foo() → core::int; + no-such-method-forwarder method foo() → core::int + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} core::int; } static method main() → dynamic ; diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.expect index bf9c46cd29b..f5b732fea47 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.expect @@ -22,6 +22,7 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → core::int; + no-such-method-forwarder method foo() → core::int + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} core::int; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.transformed.expect index 32ef81fef6d..2104e42df8d 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.strong.transformed.expect @@ -28,6 +28,7 @@ class A extends self::_A&Object&M implements self::I { synthetic constructor •() → void : super core::Object::•() ; - abstract no-such-method-forwarder method foo() → core::int; + no-such-method-forwarder method foo() → core::int + return this.{self::M::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], core::Map::unmodifiable(const {}), false)) as{TypeError} core::int; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/rasta/static.dart.direct.expect b/pkg/front_end/testcases/rasta/static.dart.direct.expect index e047d82a8f1..2154f49dbca 100644 --- a/pkg/front_end/testcases/rasta/static.dart.direct.expect +++ b/pkg/front_end/testcases/rasta/static.dart.direct.expect @@ -29,24 +29,24 @@ static method main() → dynamic { self::use(self::Foo::staticGetter); throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))); self::use(throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dynamic #t2 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [#t1.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t1); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dynamic #t2 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([#t1.+(1)]), core::Map::unmodifiable(const {}))) in #t1); self::Foo::staticField = self::Foo::staticField.+(1); self::use(let final dynamic #t3 = self::Foo::staticField in let final dynamic #t4 = self::Foo::staticField = #t3.+(1) in #t3); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dynamic #t6 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [#t5.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t5); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [#t7.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t7); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dynamic #t6 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([#t5.+(1)]), core::Map::unmodifiable(const {}))) in #t5); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([#t7.+(1)]), core::Map::unmodifiable(const {}))) in #t7); self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1); self::use(let final dynamic #t9 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))) in let final dynamic #t10 = self::Foo::staticSetter = #t9.+(1) in #t9); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {})))); self::Foo::staticField = self::Foo::staticField.+(1); self::use(self::Foo::staticField = self::Foo::staticField.+(1)); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {})))); self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1); self::use(self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1)); self::Foo::staticConstant.call(); @@ -59,24 +59,24 @@ static method main() → dynamic { self::use(self::Foo::staticGetter.call()); (throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).call(); self::use((throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).call()); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); self::Foo::staticField = 87; self::use(self::Foo::staticField = 87); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); self::Foo::staticSetter = 87; self::use(self::Foo::staticSetter = 87); - self::Foo::staticConstant.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t11); + self::Foo::staticConstant.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t11); self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null; self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ? self::Foo::staticField = 87 : #t12); - self::Foo::staticFunction.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t13); - self::Foo::staticGetter.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t14); + self::Foo::staticFunction.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t13); + self::Foo::staticGetter.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t14); (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).==(null) ? self::Foo::staticSetter = 87 : null; self::use(let final dynamic #t15 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))) in #t15.==(null) ? self::Foo::staticSetter = 87 : #t15); } diff --git a/pkg/front_end/testcases/rasta/static.dart.direct.transformed.expect b/pkg/front_end/testcases/rasta/static.dart.direct.transformed.expect index e047d82a8f1..2154f49dbca 100644 --- a/pkg/front_end/testcases/rasta/static.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/rasta/static.dart.direct.transformed.expect @@ -29,24 +29,24 @@ static method main() → dynamic { self::use(self::Foo::staticGetter); throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))); self::use(throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dynamic #t2 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [#t1.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t1); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dynamic #t2 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([#t1.+(1)]), core::Map::unmodifiable(const {}))) in #t1); self::Foo::staticField = self::Foo::staticField.+(1); self::use(let final dynamic #t3 = self::Foo::staticField in let final dynamic #t4 = self::Foo::staticField = #t3.+(1) in #t3); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dynamic #t6 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [#t5.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t5); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [#t7.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))) in #t7); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dynamic #t6 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([#t5.+(1)]), core::Map::unmodifiable(const {}))) in #t5); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([#t7.+(1)]), core::Map::unmodifiable(const {}))) in #t7); self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1); self::use(let final dynamic #t9 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))) in let final dynamic #t10 = self::Foo::staticSetter = #t9.+(1) in #t9); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [self::Foo::staticConstant.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([self::Foo::staticConstant.+(1)]), core::Map::unmodifiable(const {})))); self::Foo::staticField = self::Foo::staticField.+(1); self::use(self::Foo::staticField = self::Foo::staticField.+(1)); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [self::Foo::staticFunction.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [self::Foo::staticGetter.+(1)].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([self::Foo::staticFunction.+(1)]), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([self::Foo::staticGetter.+(1)]), core::Map::unmodifiable(const {})))); self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1); self::use(self::Foo::staticSetter = (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).+(1)); self::Foo::staticConstant.call(); @@ -59,24 +59,24 @@ static method main() → dynamic { self::use(self::Foo::staticGetter.call()); (throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).call(); self::use((throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).call()); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); self::Foo::staticField = 87; self::use(self::Foo::staticField = 87); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))); - self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))); + self::use(let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {})))); self::Foo::staticSetter = 87; self::use(self::Foo::staticSetter = 87); - self::Foo::staticConstant.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t11); + self::Foo::staticConstant.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticConstant, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t11); self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null; self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ? self::Foo::staticField = 87 : #t12); - self::Foo::staticFunction.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t13); - self::Foo::staticGetter.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : null; - self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], [87].toList(growable: false), core::Map::unmodifiable(const {}))) : #t14); + self::Foo::staticFunction.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticFunction, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t13); + self::Foo::staticGetter.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : null; + self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticGetter, 34, const [], core::List::unmodifiable([87]), core::Map::unmodifiable(const {}))) : #t14); (let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {})))).==(null) ? self::Foo::staticSetter = 87 : null; self::use(let final dynamic #t15 = let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#staticSetter, 33, const [], const [], core::Map::unmodifiable(const {}))) in #t15.==(null) ? self::Foo::staticSetter = 87 : #t15); } diff --git a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect index 9a7f7e0a551..7e66e5ffdce 100644 --- a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect +++ b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect @@ -13,7 +13,7 @@ class Fisk extends core::Object { core::print(this.key); } for (final dynamic #t2 in x) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], [#t2].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], core::List::unmodifiable([#t2]), core::Map::unmodifiable(const {}))); core::print(self::Fisk); } for (final dynamic #t3 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:17:10: Error: Expected lvalue, but got Instance of 'KernelPrefixBuilder' @@ -22,7 +22,7 @@ class Fisk extends core::Object { core::print(invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."); } for (final dynamic #t4 in x) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], [#t4].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], core::List::unmodifiable([#t4]), core::Map::unmodifiable(const {}))); core::print(() → void); } for (final dynamic #t5 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:23:10: Error: Expected lvalue, but got 1 @@ -40,11 +40,11 @@ static const field dynamic #errors = const ["pkg/front_end/testcases/ra static method main(dynamic arguments) → dynamic { new self::Fisk::•(); for (final dynamic #t6 in arguments) { - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 34, const [], [#t6].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 34, const [], core::List::unmodifiable([#t6]), core::Map::unmodifiable(const {}))); core::print(throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 33, const [], const [], core::Map::unmodifiable(const {})))); } for (final dynamic #t7 in arguments) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], [#t7].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], core::List::unmodifiable([#t7]), core::Map::unmodifiable(const {}))); core::print(self::Fisk); } for (final dynamic #t8 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:37:8: Error: Expected lvalue, but got Instance of 'KernelPrefixBuilder' @@ -53,7 +53,7 @@ static method main(dynamic arguments) → dynamic { core::print(invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."); } for (final dynamic #t9 in arguments) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], [#t9].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], core::List::unmodifiable([#t9]), core::Map::unmodifiable(const {}))); core::print(() → void); } for (final dynamic #t10 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:43:8: Error: Expected lvalue, but got 1 diff --git a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.transformed.expect b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.transformed.expect index 9a7f7e0a551..7e66e5ffdce 100644 --- a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.transformed.expect @@ -13,7 +13,7 @@ class Fisk extends core::Object { core::print(this.key); } for (final dynamic #t2 in x) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], [#t2].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], core::List::unmodifiable([#t2]), core::Map::unmodifiable(const {}))); core::print(self::Fisk); } for (final dynamic #t3 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:17:10: Error: Expected lvalue, but got Instance of 'KernelPrefixBuilder' @@ -22,7 +22,7 @@ class Fisk extends core::Object { core::print(invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."); } for (final dynamic #t4 in x) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], [#t4].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], core::List::unmodifiable([#t4]), core::Map::unmodifiable(const {}))); core::print(() → void); } for (final dynamic #t5 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:23:10: Error: Expected lvalue, but got 1 @@ -40,11 +40,11 @@ static const field dynamic #errors = const ["pkg/front_end/testcases/ra static method main(dynamic arguments) → dynamic { new self::Fisk::•(); for (final dynamic #t6 in arguments) { - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 34, const [], [#t6].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 34, const [], core::List::unmodifiable([#t6]), core::Map::unmodifiable(const {}))); core::print(throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#key, 33, const [], const [], core::Map::unmodifiable(const {})))); } for (final dynamic #t7 in arguments) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], [#t7].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#Fisk, 34, const [], core::List::unmodifiable([#t7]), core::Map::unmodifiable(const {}))); core::print(self::Fisk); } for (final dynamic #t8 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:37:8: Error: Expected lvalue, but got Instance of 'KernelPrefixBuilder' @@ -53,7 +53,7 @@ static method main(dynamic arguments) → dynamic { core::print(invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."); } for (final dynamic #t9 in arguments) { - let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], [#t9].toList(growable: false), core::Map::unmodifiable(const {}))); + let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#VoidFunction, 34, const [], core::List::unmodifiable([#t9]), core::Map::unmodifiable(const {}))); core::print(() → void); } for (final dynamic #t10 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/rasta/unresolved_for_in.dart:43:8: Error: Expected lvalue, but got 1 diff --git a/pkg/front_end/testcases/regress/issue_31299.dart.direct.expect b/pkg/front_end/testcases/regress/issue_31299.dart.direct.expect index 0161677cb85..be6f8dc344f 100644 --- a/pkg/front_end/testcases/regress/issue_31299.dart.direct.expect +++ b/pkg/front_end/testcases/regress/issue_31299.dart.direct.expect @@ -22,6 +22,6 @@ static method test() → dynamic { new self::A::•().foo(); new self::A::•().foo(1, 2); new self::A::foo(); - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], [1, 2].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], core::List::unmodifiable([1, 2]), core::Map::unmodifiable(const {}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_31299.dart.direct.transformed.expect b/pkg/front_end/testcases/regress/issue_31299.dart.direct.transformed.expect index 0161677cb85..be6f8dc344f 100644 --- a/pkg/front_end/testcases/regress/issue_31299.dart.direct.transformed.expect +++ b/pkg/front_end/testcases/regress/issue_31299.dart.direct.transformed.expect @@ -22,6 +22,6 @@ static method test() → dynamic { new self::A::•().foo(); new self::A::•().foo(1, 2); new self::A::foo(); - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], [1, 2].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], core::List::unmodifiable([1, 2]), core::Map::unmodifiable(const {}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_31299.dart.strong.expect b/pkg/front_end/testcases/regress/issue_31299.dart.strong.expect index 680a6d3de24..be7bde015b1 100644 --- a/pkg/front_end/testcases/regress/issue_31299.dart.strong.expect +++ b/pkg/front_end/testcases/regress/issue_31299.dart.strong.expect @@ -26,6 +26,6 @@ static method test() → dynamic { new self::A::•().{self::A::foo}(); new self::A::•().{self::A::foo}(1, 2); new self::A::foo(); - throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], [1, 2].toList(growable: false), core::Map::unmodifiable(const {}))); + throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#foo, 32, const [], core::List::unmodifiable([1, 2]), core::Map::unmodifiable(const {}))); } static method main() → dynamic {} diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart index 3bfd9733d7f..59a280f5126 100644 --- a/pkg/kernel/lib/ast.dart +++ b/pkg/kernel/lib/ast.dart @@ -1590,7 +1590,6 @@ class Procedure extends Member { } void set isNoSuchMethodForwarder(bool value) { - assert(isAbstract); flags = value ? (flags | FlagNoSuchMethodForwarder) : (flags & ~FlagNoSuchMethodForwarder); @@ -2580,6 +2579,17 @@ class Arguments extends TreeNode { positional = [], named = []; + factory Arguments.forwarded(FunctionNode function) { + return new Arguments( + function.positionalParameters.map((p) => new VariableGet(p)).toList(), + named: function.namedParameters + .map((p) => new NamedExpression(p.name, new VariableGet(p))) + .toList(), + types: function.typeParameters + .map((p) => new TypeParameterType(p)) + .toList()); + } + accept(TreeVisitor v) => v.visitArguments(this); visitChildren(Visitor v) { diff --git a/pkg/kernel/lib/core_types.dart b/pkg/kernel/lib/core_types.dart index c7813981403..e0fe377b750 100644 --- a/pkg/kernel/lib/core_types.dart +++ b/pkg/kernel/lib/core_types.dart @@ -62,6 +62,7 @@ class CoreTypes { Class _noSuchMethodErrorClass; Constructor _noSuchMethodErrorDefaultConstructor; Procedure _listFromConstructor; + Procedure _listUnmodifiableConstructor; Procedure _printProcedure; Procedure _identicalProcedure; Constructor _constantExpressionErrorDefaultConstructor; @@ -272,6 +273,11 @@ class CoreTypes { index.getMember('dart:core', 'List', 'from'); } + Procedure get listUnmodifiableConstructor { + return _listUnmodifiableConstructor ??= + index.getMember('dart:core', 'List', 'unmodifiable'); + } + Class get mapClass { return _mapClass ??= index.getClass('dart:core', 'Map'); } diff --git a/pkg/kernel/lib/target/vm.dart b/pkg/kernel/lib/target/vm.dart index 322d2c5d4cf..8b6b526781a 100644 --- a/pkg/kernel/lib/target/vm.dart +++ b/pkg/kernel/lib/target/vm.dart @@ -90,11 +90,12 @@ class VmTarget extends Target { new Arguments([ new StringLiteral(name)..fileOffset = offset, _fixedLengthList( + coreTypes, coreTypes.typeClass.rawType, arguments.types.map((t) => new TypeLiteral(t)).toList(), arguments.fileOffset), - _fixedLengthList( - const DynamicType(), arguments.positional, arguments.fileOffset), + _fixedLengthList(coreTypes, const DynamicType(), arguments.positional, + arguments.fileOffset), new StaticInvocation( coreTypes.mapUnmodifiable, new Arguments([ @@ -107,6 +108,9 @@ class VmTarget extends Target { })), keyType: coreTypes.symbolClass.rawType) ..isConst = (arguments.named.length == 0) ..fileOffset = arguments.fileOffset + ], types: [ + coreTypes.symbolClass.rawType, + new DynamicType() ])) ..fileOffset = arguments.fileOffset, new BoolLiteral(isSuper)..fileOffset = arguments.fileOffset @@ -148,11 +152,12 @@ class VmTarget extends Target { new SymbolLiteral(name)..fileOffset = offset, new IntLiteral(type)..fileOffset = offset, _fixedLengthList( + coreTypes, coreTypes.typeClass.rawType, arguments.types.map((t) => new TypeLiteral(t)).toList(), arguments.fileOffset), - _fixedLengthList(const DynamicType(), arguments.positional, - arguments.fileOffset), + _fixedLengthList(coreTypes, const DynamicType(), + arguments.positional, arguments.fileOffset), new StaticInvocation( coreTypes.mapUnmodifiable, new Arguments([ @@ -244,8 +249,8 @@ class VmTarget extends Target { return type; } - Expression _fixedLengthList( - DartType typeArgument, List elements, int offset) { + Expression _fixedLengthList(CoreTypes coreTypes, DartType typeArgument, + List elements, int offset) { // TODO(ahe): It's possible that it would be better to create a fixed-length // list first, and then populate it. That would create fewer objects. But as // this is currently only used in (statically resolved) no-such-method @@ -256,12 +261,13 @@ class VmTarget extends Target { return new ListLiteral([], typeArgument: typeArgument)..isConst = true; } - return new MethodInvocation( - new ListLiteral(elements, typeArgument: typeArgument) - ..fileOffset = offset, - new Name("toList"), - new Arguments([], named: [ - new NamedExpression("growable", new BoolLiteral(false)) + return new StaticInvocation( + coreTypes.listUnmodifiableConstructor, + new Arguments([ + new ListLiteral(elements, typeArgument: typeArgument) + ..fileOffset = offset + ], types: [ + new DynamicType() ])); } diff --git a/pkg/vm/testcases/transformations/type_flow/transformer/no_such_method.dart.expect b/pkg/vm/testcases/transformations/type_flow/transformer/no_such_method.dart.expect index aef28311d7c..79d7fdccbff 100644 --- a/pkg/vm/testcases/transformations/type_flow/transformer/no_such_method.dart.expect +++ b/pkg/vm/testcases/transformations/type_flow/transformer/no_such_method.dart.expect @@ -47,9 +47,12 @@ class B extends self::A { method noSuchMethod(core::Invocation invocation) → dynamic { return new self::T1::•(); } - abstract no-such-method-forwarder get bar() → dynamic; - abstract no-such-method-forwarder method foo() → dynamic; - abstract no-such-method-forwarder method bazz(dynamic a1, dynamic a2, dynamic a3, [dynamic a4, dynamic a5]) → dynamic; + no-such-method-forwarder get bar() → dynamic + return [@vm.direct-call.metadata=#lib::B::noSuchMethod] [@vm.inferred-type.metadata=#lib::T1] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withoutType("get:bar", const [], const [], [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; + no-such-method-forwarder method foo() → dynamic + return [@vm.direct-call.metadata=#lib::B::noSuchMethod] [@vm.inferred-type.metadata=#lib::T1] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; + no-such-method-forwarder method bazz([@vm.inferred-type.metadata=!] dynamic a1, [@vm.inferred-type.metadata=!] dynamic a2, [@vm.inferred-type.metadata=!] dynamic a3, [[@vm.inferred-type.metadata=!] dynamic a4, [@vm.inferred-type.metadata=dart.core::Null?] dynamic a5]) → dynamic + return [@vm.direct-call.metadata=#lib::B::noSuchMethod] [@vm.inferred-type.metadata=#lib::T1] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withoutType("bazz", const [], core::List::unmodifiable([a1, a2, a3, a4, a5]), [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; } abstract class C extends core::Object { synthetic constructor •() → void @@ -63,9 +66,12 @@ class D extends self::C implements self::A { synthetic constructor •() → void : super self::C::•() ; - abstract no-such-method-forwarder get bar() → dynamic; - abstract no-such-method-forwarder method foo() → dynamic; - abstract no-such-method-forwarder method bazz(dynamic a1, dynamic a2, dynamic a3, [dynamic a4, dynamic a5]) → dynamic; + no-such-method-forwarder get bar() → dynamic + return [@vm.direct-call.metadata=#lib::C::noSuchMethod] [@vm.inferred-type.metadata=#lib::T2] this.{self::C::noSuchMethod}(new core::_InvocationMirror::_withoutType("get:bar", const [], const [], [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; + no-such-method-forwarder method foo() → dynamic + return [@vm.direct-call.metadata=#lib::C::noSuchMethod] [@vm.inferred-type.metadata=#lib::T2] this.{self::C::noSuchMethod}(new core::_InvocationMirror::_withoutType("foo", const [], const [], [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; + no-such-method-forwarder method bazz([@vm.inferred-type.metadata=!] dynamic a1, [@vm.inferred-type.metadata=!] dynamic a2, [@vm.inferred-type.metadata=!] dynamic a3, [[@vm.inferred-type.metadata=!] dynamic a4, [@vm.inferred-type.metadata=dart.core::Null?] dynamic a5]) → dynamic + return [@vm.direct-call.metadata=#lib::C::noSuchMethod] [@vm.inferred-type.metadata=#lib::T2] this.{self::C::noSuchMethod}(new core::_InvocationMirror::_withoutType("bazz", const [], core::List::unmodifiable([a1, a2, a3, a4, a5]), [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; } class E extends core::Object implements self::A { synthetic constructor •() → void @@ -74,8 +80,8 @@ class E extends core::Object implements self::A { method noSuchMethod(core::Invocation invocation) → dynamic { return new self::T4::•(); } - abstract no-such-method-forwarder get bar() → dynamic; - abstract no-such-method-forwarder method bazz(dynamic a1, dynamic a2, dynamic a3, [dynamic a4, dynamic a5]) → dynamic; + no-such-method-forwarder get bar() → dynamic + return [@vm.direct-call.metadata=#lib::E::noSuchMethod] [@vm.inferred-type.metadata=#lib::T4] this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withoutType("get:bar", const [], const [], [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(const {}), false)) as{TypeError} dynamic; } class F extends core::Object { synthetic constructor •() → void @@ -109,12 +115,12 @@ class H extends core::Object { static method getDynamic() → dynamic return self::unknown.call(); static method main(core::List args) → dynamic { - core::print([@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::foo}()); - core::print([@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::bar}); - core::print([@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::bazz}(1, 2, 3, 4)); - core::print([@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::foo}()); - core::print([@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::bar}); - core::print([@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::bazz}(1, 2, 3, 4)); + core::print([@vm.direct-call.metadata=#lib::B::foo??] [@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::foo}()); + core::print([@vm.direct-call.metadata=#lib::B::bar??] [@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::bar}); + core::print([@vm.direct-call.metadata=#lib::B::bazz??] [@vm.inferred-type.metadata=#lib::T1] [@vm.inferred-type.metadata=#lib::B?] self::bb.{self::A::bazz}(1, 2, 3, 4)); + core::print([@vm.direct-call.metadata=#lib::D::foo??] [@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::foo}()); + core::print([@vm.direct-call.metadata=#lib::D::bar??] [@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::bar}); + core::print([@vm.direct-call.metadata=#lib::D::bazz??] [@vm.inferred-type.metadata=#lib::T2] [@vm.inferred-type.metadata=#lib::D?] self::dd.{self::A::bazz}(1, 2, 3, 4)); new self::E::•(); self::A xx = self::getDynamic() as{TypeError} self::A; core::print([@vm.inferred-type.metadata=!] xx.{self::A::bar}); diff --git a/runtime/vm/compiler/frontend/kernel_binary_flowgraph.h b/runtime/vm/compiler/frontend/kernel_binary_flowgraph.h index a572a7dcdaa..ff7d03d66d0 100644 --- a/runtime/vm/compiler/frontend/kernel_binary_flowgraph.h +++ b/runtime/vm/compiler/frontend/kernel_binary_flowgraph.h @@ -336,9 +336,6 @@ class ProcedureHelper { bool IsRedirectingFactoryConstructor() { return (flags_ & kRedirectingFactoryConstructor) != 0; } - bool IsNoSuchMethodForwarder() { - return (flags_ & kNoSuchMethodForwarder) != 0; - } NameIndex canonical_name_; TokenPosition position_; diff --git a/runtime/vm/kernel_loader.cc b/runtime/vm/kernel_loader.cc index 6a3358cc2ca..588c342a505 100644 --- a/runtime/vm/kernel_loader.cc +++ b/runtime/vm/kernel_loader.cc @@ -1304,8 +1304,6 @@ void KernelLoader::LoadProcedure(const Library& library, const String& name = H.DartProcedureName(procedure_helper.canonical_name_); bool is_method = in_class && !procedure_helper.IsStatic(); bool is_abstract = procedure_helper.IsAbstract(); - bool is_no_such_method_forwarder = procedure_helper.IsNoSuchMethodForwarder(); - bool is_external = procedure_helper.IsExternal(); String* native_name = NULL; intptr_t annotation_count; @@ -1384,10 +1382,9 @@ void KernelLoader::LoadProcedure(const Library& library, Z, Function::New(name, kind, !is_method, // is_static false, // is_const - is_abstract && !is_no_such_method_forwarder, is_external, + is_abstract, is_external, native_name != NULL, // is_native script_class, procedure_helper.position_)); - function.set_is_no_such_method_forwarder(is_no_such_method_forwarder); function.set_end_token_pos(procedure_helper.end_position_); functions_.Add(&function); function.set_kernel_offset(procedure_offset); diff --git a/tests/corelib_2/map_unmodifiable_cast_test.dart b/tests/corelib_2/map_unmodifiable_cast_test.dart index 3091337d528..ec5b419aabb 100644 --- a/tests/corelib_2/map_unmodifiable_cast_test.dart +++ b/tests/corelib_2/map_unmodifiable_cast_test.dart @@ -49,9 +49,9 @@ void main() { testNum(m2.cast(), "Map.unmod.cast"); Map nsm = new NsmMap().foo(a: 0); - test(nsm, #a, 0, "nsm"); - test(nsm.cast(), #a, 0, "nsm.cast"); - test(nsm.retype(), #a, 0, "nsm.retype"); + test(nsm, #a, 0, "nsm", noSuchMethodMap: true); + test(nsm.cast(), #a, 0, "nsm.cast", noSuchMethodMap: true); + test(nsm.retype(), #a, 0, "nsm.retype", noSuchMethodMap: true); } void testNum(Map map, String name) { @@ -59,11 +59,14 @@ void testNum(Map map, String name) { } void test( - Map map, Object firstKey, Object firstValue, String name) { - Expect.isTrue(map.containsKey(firstKey), "$name.containsKey"); - Expect.equals(1, map.length, "$name.length"); - Expect.equals(firstKey, map.keys.first, "$name.keys.first"); - Expect.equals(firstValue, map.values.first, "$name.values.first"); + Map map, Object firstKey, Object firstValue, String name, + {bool noSuchMethodMap: false}) { + if (!noSuchMethodMap) { + Expect.isTrue(map.containsKey(firstKey), "$name.containsKey"); + Expect.equals(1, map.length, "$name.length"); + Expect.equals(firstKey, map.keys.first, "$name.keys.first"); + Expect.equals(firstValue, map.values.first, "$name.values.first"); + } Expect.throwsUnsupportedError(map.clear, "$name.clear"); Expect.throwsUnsupportedError(() { diff --git a/tests/language_2/language_2_dartdevc.status b/tests/language_2/language_2_dartdevc.status index c4073144650..f6cc43c32de 100644 --- a/tests/language_2/language_2_dartdevc.status +++ b/tests/language_2/language_2_dartdevc.status @@ -759,3 +759,4 @@ syntax_test/60: MissingCompileTimeError syntax_test/61: MissingCompileTimeError truncdiv_test: RuntimeError # Issue 29920; Expect.throws fails: Did not throw vm/*: SkipByDesign # VM only tests.; VM only tests. +nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test: RuntimeError # Issue 33019 diff --git a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart index 126c2c0f74d..01a59e77931 100644 --- a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart +++ b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart @@ -14,10 +14,12 @@ class A { Expect.equals(invoke.positionalArguments[1], 2); return null; } else if (invoke.memberName == #test1) { - Expect.isTrue(invoke.namedArguments.isEmpty); + Expect.isTrue(invoke.namedArguments.length == 1); + Expect.equals(null, invoke.namedArguments[#x]); return null; } else if (invoke.memberName == #test2) { - Expect.isTrue(invoke.namedArguments.isEmpty); + Expect.isTrue(invoke.namedArguments.length == 1); + Expect.equals("w/e", invoke.namedArguments[#x]); return null; } else if (invoke.memberName == #test3) { Expect.equals(invoke.namedArguments[#x], "ok"); @@ -42,6 +44,9 @@ class A { Expect.equals(invoke.namedArguments.length, 1); Expect.equals(invoke.namedArguments[#foo], const [3, 4]); + } else if (invoke.memberName == #test8) { + Expect.equals(1, invoke.positionalArguments.length); + Expect.equals(null, invoke.positionalArguments[0]); } } @@ -56,6 +61,8 @@ class A { int get test7; void set test7(int x); + void test8([String x]); + T allTogetherNow(S x1, {List foo: const []}); } @@ -89,4 +96,6 @@ main() { Expect.throwsTypeError(() => (a as dynamic).test7 = "hi"); a.allTogetherNow(2.0, foo: const [3, 4]); + + a.test8(); }