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

Unified Diff: tests/language_strong/type_parameter_test.dart

Issue 2770063002: Revert "Format all 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/type_parameter_test.dart
diff --git a/tests/language_strong/type_parameter_test.dart b/tests/language_strong/type_parameter_test.dart
index dafa62964f95ff4262ecbad14fe512d9da2a8b4b..1b91d0a8e4466bac6423a5028fd20b369759444a 100644
--- a/tests/language_strong/type_parameter_test.dart
+++ b/tests/language_strong/type_parameter_test.dart
@@ -18,31 +18,32 @@ class A<T> {
static
T //# 01: static type warning, dynamic type error
- staticMethod(
+ staticMethod(
T //# 02: static type warning, dynamic type error
- a) {
+ a) {
final
T //# 03: static type warning, dynamic type error
- a = "not_null";
+ a = "not_null";
print(a);
return a;
}
static final
T //# 04: static type warning, dynamic type error
- staticFinalField = "not_null";
+ staticFinalField = "not_null";
static const
T //# 05: static type warning, checked mode compile-time error
- staticConstField = "not_null";
+ staticConstField = "not_null";
static not_null() => "not_null";
static final
T //# 06: static type warning, dynamic type error
- staticFinalField2 = not_null();
+ staticFinalField2 = not_null();
// Assigning null to a malformed type is not a dynamic error.
- static T staticMethod2(T a) {
+ static
+ T staticMethod2(T a) {
final T a = null;
print(a);
return a;

Powered by Google App Engine
This is Rietveld 408576698