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

Unified Diff: tests/language/type_promotion_closure_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
« no previous file with comments | « tests/language/type_promotion_assign_test.dart ('k') | tests/language/type_promotion_functions_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_promotion_closure_test.dart
diff --git a/tests/language/type_promotion_closure_test.dart b/tests/language/type_promotion_closure_test.dart
index fd0c235026413f0796f95b8d44f4150f7d6148b1..56d1d5b5daa09d26c6439aa0f4315ea4a8259843 100644
--- a/tests/language/type_promotion_closure_test.dart
+++ b/tests/language/type_promotion_closure_test.dart
@@ -8,19 +8,15 @@ class A {
var a = "a";
A operator +(int i) => this;
}
-
class B extends A {
var b = "b";
}
-
class C extends B {
var c = "c";
}
-
class D extends A {
var d = "d";
}
-
class E extends D implements C {
var a = "";
var b = "";
@@ -63,7 +59,6 @@ void test2() {
void foo() {
a = new D();
}
-
if (a is B) {
print(a.a);
print(a.b); //# 02: static type warning
@@ -75,14 +70,12 @@ void test3() {
void foo() {
a = new D();
}
-
if (a is B) {
print(a.a);
print(a.b); //# 03: static type warning
void foo() {
a = new D();
}
-
print(a.a);
print(a.b); //# 04: static type warning
}
@@ -93,14 +86,12 @@ void test3a() {
void foo() {
a = new D();
}
-
if ((((a)) is B)) {
print(a.a);
print(a.b); //# 15: static type warning
void foo() {
a = new D();
}
-
print(a.a);
print(a.b); //# 16: static type warning
}
@@ -157,7 +148,7 @@ void test8() {
A a = new E();
if (a is B
&& func(() => a.b) //# 09: static type warning
- ) {
+ ) {
print(a.a);
}
a = null;
« no previous file with comments | « tests/language/type_promotion_assign_test.dart ('k') | tests/language/type_promotion_functions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698