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

Unified Diff: corelib/src/function.dart

Issue 10832401: Gentle start with removing explicit interfaces (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
Index: corelib/src/function.dart
===================================================================
--- corelib/src/function.dart (revision 11241)
+++ corelib/src/function.dart (working copy)
@@ -4,5 +4,9 @@
// Dart core library.
-interface Function {
+abstract class Function {
+ factory Function._uninstantiable() {
+ throw const UnsupportedOperationException(
+ "abstract class Function cannot be instantiated");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698