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

Unified Diff: tests/language/implicit_this_test.dart

Issue 10910284: Stop making classes implicitly abstract (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/get_set_syntax_test.dart ('k') | tests/language/interface_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/implicit_this_test.dart
===================================================================
--- tests/language/implicit_this_test.dart (revision 12390)
+++ tests/language/implicit_this_test.dart (working copy)
@@ -6,9 +6,6 @@
final x;
}
-// The abstract keyword is implicit if a class declares an abstract
-// member. This class does not declare any abstract members, so it
-// must be marked abstract because it doesn't implement the x getter.
abstract class Abstract implements Interface {
String toString() => x.toString();
}
@@ -39,7 +36,7 @@
void main() {
var x = new Abstract(); /// 02: runtime error
var y = new SubAbstract1(); /// 01: continued
- var z = new SubAbstract2(); /// 03: runtime error
+ var z = new SubAbstract2();
var a = new SubSubAbstract2(); /// 04: continued
Expect.equals(x, x); /// 02: continued
Expect.equals('7', new Concrete().toString());
« no previous file with comments | « tests/language/get_set_syntax_test.dart ('k') | tests/language/interface_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698