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

Unified Diff: tests/language/abstract_factory_constructor_test.dart

Issue 158733003: Fix language tests wrt. warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests and status. Created 6 years, 10 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/abstract_exact_selector_test.dart ('k') | tests/language/abstract_getter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/abstract_factory_constructor_test.dart
diff --git a/tests/language/abstract_factory_constructor_test.dart b/tests/language/abstract_factory_constructor_test.dart
index d2e3a6f00219e2106dbf4bee7b58f65644f95c8f..d20401ae8ac1bef847ad5d5bdc48a09bab41821c 100644
--- a/tests/language/abstract_factory_constructor_test.dart
+++ b/tests/language/abstract_factory_constructor_test.dart
@@ -11,18 +11,19 @@ class B extends A1 {
method() {}
}
-class A1 {
+abstract class A1 {
A1() {}
method(); // Abstract.
factory A1.make() { return new B(); }
}
class A2 {
- method(); // Abstract.
+ // Intentionally abstract method.
+ method(); /// 00: static type warning
A2.make() {}
}
main() {
new A1.make();
- new A2.make(); /// 00: static type warning
+ new A2.make(); /// 00: continued
}
« no previous file with comments | « tests/language/abstract_exact_selector_test.dart ('k') | tests/language/abstract_getter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698