Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: test/codegen/language/flatten_test.dart

Issue 1643003003: Skip flatten tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698