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

Unified Diff: tests/language/get_set_syntax_test.dart

Issue 10916039: Throw AbstractClassInstantiationError if an abstract class is instantiated (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/empty_body_member_negative_test.dart ('k') | tests/language/implicit_this_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/get_set_syntax_test.dart
===================================================================
--- tests/language/get_set_syntax_test.dart (revision 11699)
+++ tests/language/get_set_syntax_test.dart (working copy)
@@ -22,7 +22,9 @@
class C1 {
List get;
- List get a; /// 08: compile-time error
+ List get a;
+ abstract List get a2;
+ abstract List get a3 => null; /// 08: compile-time error
List get b, c; /// 09: compile-time error
List set;
@@ -32,7 +34,9 @@
class C2 {
List<int> get;
- List<int> get a; /// 12: compile-time error
+ List<int> get a;
+ abstract List<int> get a2;
+ abstract List<int> get a3 => null; /// 08: compile-time error
List<int> get b, c; /// 13: compile-time error
List<int> set;
@@ -41,7 +45,5 @@
}
main() {
- new C0();
- new C1();
- new C2();
+ new C1(); /// 16: runtime error
}
« no previous file with comments | « tests/language/empty_body_member_negative_test.dart ('k') | tests/language/implicit_this_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698