| Index: test/codegen/language/generic_async_star_test.dart
|
| diff --git a/test/codegen/language/hashcode_dynamic_test.dart b/test/codegen/language/generic_async_star_test.dart
|
| similarity index 55%
|
| copy from test/codegen/language/hashcode_dynamic_test.dart
|
| copy to test/codegen/language/generic_async_star_test.dart
|
| index b705dd8afaaf98e39def9dde62120f5eff404962..cf18af84924948a71e6e6420322cdd082319b6b7 100644
|
| --- a/test/codegen/language/hashcode_dynamic_test.dart
|
| +++ b/test/codegen/language/generic_async_star_test.dart
|
| @@ -4,7 +4,16 @@
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -void main() {
|
| - dynamic x = 3;
|
| - Expect.equals(3, x.hashCode);
|
| +import 'dart:async';
|
| +
|
| +Stream/*<T>*/ foo/*<T>*/(/*=T*/ x) async* {
|
| + for (int i = 0; i < 3; i++) {
|
| + yield x;
|
| + }
|
| +}
|
| +
|
| +main() async {
|
| + await for (var x in foo/*<int>*/(1)) {
|
| + Expect.equals(1, x);
|
| + }
|
| }
|
|
|