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

Unified Diff: tests/language_strong/new_expression_type_args_test.dart

Issue 2765693002: Update all tests (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/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 3f298f420ce07c89968bdc12704a1580d250fafc..b8fa68a19681b49070863a50788e6273a4b5be55 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
}

Powered by Google App Engine
This is Rietveld 408576698