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

Unified Diff: tests/lib/async/future_or_bad_type_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/lib/async/future_or_bad_type_test.dart
diff --git a/tests/lib/async/future_or_bad_type_test.dart b/tests/lib/async/future_or_bad_type_test.dart
index 73e957ec78901cdac4716b09af6aca0129263375..07cb7176db2018ed249f4889f46b09c48cab39c6 100644
--- a/tests/lib/async/future_or_bad_type_test.dart
+++ b/tests/lib/async/future_or_bad_type_test.dart
@@ -10,9 +10,9 @@ import 'dart:async';
import 'package:expect/expect.dart';
class A
- extends FutureOr<String> // /// extends: compile-time error
- extends Object with FutureOr<bool> // /// with: compile-time error
- implements FutureOr<int> // /// implements: compile-time error
+ extends FutureOr<String> // //# extends: compile-time error
+ extends Object with FutureOr<bool> // //# with: compile-time error
+ implements FutureOr<int> // //# implements: compile-time error
{
}
@@ -20,8 +20,8 @@ main() {
// FutureOr<T> should be treated like `dynamic`. Dynamically the `T` is
// completely ignored. It can be a malformed type.
Expect.isTrue(499 is FutureOr<A>);
- Expect.isTrue(499 is FutureOr<Does<Not<Exist>>>); // /// 00: static type warning
- Expect.isTrue(499 is FutureOr<A, A>); // /// 01: static type warning
+ Expect.isTrue(499 is FutureOr<Does<Not<Exist>>>); // //# 00: static type warning
+ Expect.isTrue(499 is FutureOr<A, A>); // //# 01: static type warning
var a = new A();
Expect.isTrue(a.toString() is String);
« no previous file with comments | « tests/language_strong/wrong_number_type_arguments_test.dart ('k') | tests/lib/async/future_or_only_in_async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698