| Index: test/codegen/language/super_in_async6_test.dart
|
| diff --git a/test/codegen/language/generic_async_star_test.dart b/test/codegen/language/super_in_async6_test.dart
|
| similarity index 55%
|
| copy from test/codegen/language/generic_async_star_test.dart
|
| copy to test/codegen/language/super_in_async6_test.dart
|
| index cf18af84924948a71e6e6420322cdd082319b6b7..b07864d2e8ba803dc1fb20cc8cd480ceda6e8a8a 100644
|
| --- a/test/codegen/language/generic_async_star_test.dart
|
| +++ b/test/codegen/language/super_in_async6_test.dart
|
| @@ -6,14 +6,17 @@ import "package:expect/expect.dart";
|
|
|
| import 'dart:async';
|
|
|
| -Stream/*<T>*/ foo/*<T>*/(/*=T*/ x) async* {
|
| - for (int i = 0; i < 3; i++) {
|
| - yield x;
|
| - }
|
| +class A {
|
| + Future<int> foo(int x, int y, int z) async => x + y + z;
|
| }
|
|
|
| -main() async {
|
| - await for (var x in foo/*<int>*/(1)) {
|
| - Expect.equals(1, x);
|
| +class B extends A {
|
| + Future<int> foo(int x, int y, int z) async {
|
| + var w = await super.foo(x, y, z);
|
| + return w + 1;
|
| }
|
| }
|
| +
|
| +main() async {
|
| + Expect.equals(7, await new B().foo(1, 2, 3));
|
| +}
|
|
|