Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 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.
| |
| 6 | |
| 5 /** | 7 /** |
| 6 * Everything in Dart is an [Object]. | 8 * Everything in Dart is an [Object]. |
| 7 */ | 9 */ |
| 8 class Object { | 10 class Object { |
| 9 const Object(); | 11 const Object(); |
| 10 | 12 |
| 11 bool operator ==(other) => this === other; | 13 bool operator ==(other) => this === other; |
| 12 | 14 |
| 13 get dynamic => this; | 15 get dynamic => this; |
| 14 | 16 |
| 15 external String toString(); | 17 external String toString(); |
| 16 | 18 |
| 17 external void noSuchMethod(String name, List args); | 19 external void noSuchMethod(String name, List args); |
| 20 | |
| 21 external Type runtimeType(); | |
| 18 } | 22 } |
| OLD | NEW |