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

Unified Diff: lib/core/object.dart

Issue 10908142: Add runtimeType() to Object which returns canonicalized instances of Type. (Closed) Base URL: https://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
Index: lib/core/object.dart
diff --git a/lib/core/object.dart b/lib/core/object.dart
index 7febc393e5de13dd3b615ca8f80375a392ec25a6..76fad2b854dbc2047801ab6676d8c028a847f5c0 100644
--- a/lib/core/object.dart
+++ b/lib/core/object.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+class Type {}
kasperl 2012/09/14 07:26:48 Move this below Object. I guess Type should be abs
karlklose 2012/09/14 12:07:13 Done.
+
/**
* Everything in Dart is an [Object].
*/
@@ -15,4 +17,6 @@ class Object {
external String toString();
external void noSuchMethod(String name, List args);
+
+ external Type runtimeType();
}

Powered by Google App Engine
This is Rietveld 408576698