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

Unified Diff: tests/language_strong/flatten_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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
Index: tests/language_strong/flatten_test.dart
diff --git a/tests/language_strong/flatten_test.dart b/tests/language_strong/flatten_test.dart
index dcf2d61a8e6043d5404077926c648ac5e70e61f1..ab2cc0679a88ae8b8cfa11ceec302c785432e4c4 100644
--- a/tests/language_strong/flatten_test.dart
+++ b/tests/language_strong/flatten_test.dart
@@ -23,25 +23,25 @@ class Divergent<T> implements Future<Divergent<Divergent<T>>> {
test() async {
// flatten(Derived<int>) = int
- int x = await new Derived<int>(); /// 01: runtime error
- Future<int> f() async => new Derived<int>(); /// 02: ok
- Future<int> f() async { return new Derived<int>(); } /// 03: ok
- Future<int> x = (() async => new Derived<int>())(); /// 04: runtime error
+ int x = await new Derived<int>(); //# 01: runtime error
+ Future<int> f() async => new Derived<int>(); //# 02: ok
+ 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
- Future<FixedPoint<int>> f() async { return new FixedPoint<int>(); } /// 07: ok
- Future<FixedPoint<int>> x = (() async => new FixedPoint<int>())(); /// 08: runtime error
+ FixedPoint<int> x = await new FixedPoint<int>(); //# 05: runtime error
+ Future<FixedPoint<int>> f() async => new FixedPoint<int>(); //# 06: ok
+ Future<FixedPoint<int>> f() async { return new FixedPoint<int>(); } //# 07: ok
+ Future<FixedPoint<int>> x = (() async => new FixedPoint<int>())(); //# 08: runtime error
// flatten(Divergent<int>) = Divergent<Divergent<int>>
- Divergent<Divergent<int>> x = await new Divergent<int>(); /// 09: runtime error
- 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
+ Divergent<Divergent<int>> x = await new Divergent<int>(); //# 09: runtime error
+ 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
*/
}
« no previous file with comments | « tests/language_strong/fixed_type_variable_test.dart ('k') | tests/language_strong/function_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698