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

Unified Diff: tests/language_strong/type_variable_conflict2_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/type_variable_conflict2_test.dart
diff --git a/tests/language_strong/type_variable_conflict2_test.dart b/tests/language_strong/type_variable_conflict2_test.dart
index c52877bf8ad8fba08282b4b77b45d93f61335b21..53911152e3f2ba7a515c3aa1d44e8de891d580c5 100644
--- a/tests/language_strong/type_variable_conflict2_test.dart
+++ b/tests/language_strong/type_variable_conflict2_test.dart
@@ -13,45 +13,45 @@ class C<T> {
}
// Class 'C' has no instance method 'T': call noSuchMethod.
- foo() => T(); /// 01: static type warning
+ foo() => T(); //# 01: static type warning
// T is in scope, even in static context. Compile-time error to call this.T().
- static bar() => T(); /// 02: compile-time error
+ static bar() => T(); //# 02: compile-time error
// X is not in scope. NoSuchMethodError.
- static baz() => X(); /// 03: static type warning
+ static baz() => X(); //# 03: static type warning
// Class 'C' has no static method 'T': NoSuchMethodError.
- static qux() => C.T(); /// 04: static type warning
+ static qux() => C.T(); //# 04: static type warning
// Class '_Type' has no instance method 'call': NoSuchMethodError.
- quux() => (T)(); /// 05: static type warning
+ quux() => (T)(); //# 05: static type warning
// Runtime type T not accessible from static context. Compile-time error.
- static corge() => (T)(); /// 06: compile-time error
+ static corge() => (T)(); //# 06: compile-time error
// Class '_Type' has no [] operator: NoSuchMethodError.
- grault() => T[0]; /// 07: static type warning
+ grault() => T[0]; //# 07: static type warning
// Runtime type T not accessible from static context. Compile-time error.
- static garply() => T[0]; /// 08: compile-time error
+ static garply() => T[0]; //# 08: compile-time error
// Class '_Type' has no member m: NoSuchMethodError.
- waldo() => T.m; /// 09: static type warning
+ waldo() => T.m; //# 09: static type warning
// Runtime type T not accessible from static context. Compile-time error.
- static fred() => T.m; /// 10: compile-time error
+ static fred() => T.m; //# 10: compile-time error
}
main() {
- Expect.equals(42, new C().foo()); /// 01: continued
- C.bar(); /// 02: continued
- Expect.throws(() => C.baz(), (e) => e is NoSuchMethodError); /// 03: continued
- Expect.throws(() => C.qux(), (e) => e is NoSuchMethodError); /// 04: continued
- Expect.throws(() => new C().quux(), (e) => e is NoSuchMethodError); /// 05: continued
- C.corge(); /// 06: continued
- Expect.throws(() => new C().grault(), (e) => e is NoSuchMethodError); /// 07: continued
- C.garply(); /// 08: continued
- Expect.throws(() => new C().waldo(), (e) => e is NoSuchMethodError); /// 09: continued
- C.fred(); /// 10: continued
+ Expect.equals(42, new C().foo()); //# 01: continued
+ C.bar(); //# 02: continued
+ Expect.throws(() => C.baz(), (e) => e is NoSuchMethodError); //# 03: continued
+ Expect.throws(() => C.qux(), (e) => e is NoSuchMethodError); //# 04: continued
+ Expect.throws(() => new C().quux(), (e) => e is NoSuchMethodError); //# 05: continued
+ C.corge(); //# 06: continued
+ Expect.throws(() => new C().grault(), (e) => e is NoSuchMethodError); //# 07: continued
+ C.garply(); //# 08: continued
+ Expect.throws(() => new C().waldo(), (e) => e is NoSuchMethodError); //# 09: continued
+ C.fred(); //# 10: continued
}

Powered by Google App Engine
This is Rietveld 408576698