| Index: test/codegen/language/flatten_test.dart
|
| diff --git a/test/codegen/language/flatten_test.dart b/test/codegen/language/flatten_test.dart
|
| index eeb388034463487615acf4524b3b4d97636aa25a..dcf2d61a8e6043d5404077926c648ac5e70e61f1 100644
|
| --- a/test/codegen/language/flatten_test.dart
|
| +++ b/test/codegen/language/flatten_test.dart
|
| @@ -12,9 +12,13 @@ class FixedPoint<T> implements Future<FixedPoint<T>> {
|
| noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| }
|
|
|
| +// TODO(vsm): Restore when https://github.com/dart-lang/sdk/issues/25611
|
| +// is fixed.
|
| +/*
|
| class Divergent<T> implements Future<Divergent<Divergent<T>>> {
|
| noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| }
|
| +*/
|
|
|
|
|
| test() async {
|
| @@ -24,6 +28,9 @@ test() async {
|
| Future<int> f() async { return new Derived<int>(); } /// 03: ok
|
| Future<int> x = (() async => new Derived<int>())(); /// 04: runtime error
|
|
|
| + // TODO(vsm): Restore when https://github.com/dart-lang/sdk/issues/25611
|
| + // is fixed.
|
| + /*
|
| // flatten(FixedPoint<int>) = FixedPoint<int>
|
| FixedPoint<int> x = await new FixedPoint<int>(); /// 05: runtime error
|
| Future<FixedPoint<int>> f() async => new FixedPoint<int>(); /// 06: ok
|
| @@ -35,6 +42,7 @@ test() async {
|
| Future<Divergent<Divergent<int>>> f() async => new Divergent<int>(); /// 10: ok
|
| Future<Divergent<Divergent<int>>> f() async { return new Divergent<int>(); } /// 11: ok
|
| Future<Divergent<Divergent<int>>> x = (() async => new Divergent<int>())(); /// 12: runtime error
|
| + */
|
| }
|
|
|
| main() {
|
|
|