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

Unified Diff: tests/language_strong/new_expression_type_args_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
« no previous file with comments | « tests/language_strong/named_parameters_type_test.dart ('k') | tests/language_strong/new_prefix_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/new_expression_type_args_test.dart
diff --git a/tests/language_strong/new_expression_type_args_test.dart b/tests/language_strong/new_expression_type_args_test.dart
index 60c8032555268954693178b03bb70d5dba52bf6d..f4424fcdd03d5bea66f471b320bdc8a19d41a87c 100644
--- a/tests/language_strong/new_expression_type_args_test.dart
+++ b/tests/language_strong/new_expression_type_args_test.dart
@@ -5,18 +5,18 @@
// Tests showing errors using type-arguments in new expressions:
class A<T> {
// Can't instantiate type parameter (within static or instance method).
- m1() => new T(); // /// 00: static type warning, runtime error
- static m2() => new T(); // /// 01: static type warning, runtime error
+ m1() => new T(); // //# 00: static type warning, runtime error
+ static m2() => new T(); // //# 01: static type warning, runtime error
// OK when used within instance method, but not in static method.
m3() => new A<T>();
- static m4() => new A<T>(); /// 02: static type warning
+ static m4() => new A<T>(); //# 02: static type warning
}
main() {
A a = new A();
- a.m1(); /// 00: continued
- A.m2(); /// 01: continued
+ a.m1(); //# 00: continued
+ A.m2(); //# 01: continued
a.m3();
- A.m4(); /// 02: continued
+ A.m4(); //# 02: continued
}
« no previous file with comments | « tests/language_strong/named_parameters_type_test.dart ('k') | tests/language_strong/new_prefix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698