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

Unified Diff: tests/language/constructor_test.dart

Issue 158733003: Fix language tests wrt. warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/language/constructor_test.dart
diff --git a/tests/language/constructor_test.dart b/tests/language/constructor_test.dart
index eb7239c50b4855e33eeaea321733d029db7d1af9..54923f0a42c79f5d205f00802a382d89641d1396 100644
--- a/tests/language/constructor_test.dart
+++ b/tests/language/constructor_test.dart
@@ -23,10 +23,11 @@ class B {
// Test the order of initialization: first the instance variable then
// the super constructor.
-class Alpha {
+abstract class Alpha {
Alpha(v) {
this.foo(v);
}
+ foo(v) => throw 'Alpha.foo should never be called.';
}
class Beta extends Alpha {

Powered by Google App Engine
This is Rietveld 408576698