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

Unified Diff: tests/language/abstract_method_test.dart

Issue 229543002: Placate analyzer (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/abstract_method_test.dart
===================================================================
--- tests/language/abstract_method_test.dart (revision 34845)
+++ tests/language/abstract_method_test.dart (working copy)
@@ -7,12 +7,12 @@
// Checks that abstract instance methods are correctly resolved.
int get length => throw "error: top-level getter called";
-int set height(x) { throw "error: top-level setter called"; }
+set height(x) { throw "error: top-level setter called"; }
width() { throw "error: top-level function called"; }
-class A {
+abstract class A {
int get length; // Abstract instance getter.
- int set height(x); // Abstract instance setter.
+ set height(x); // Abstract instance setter.
int width(); // Abstract instance method.
// Must resolve to non-abstract length getter in subclass.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698