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

Unified Diff: frog/world.dart

Issue 8457007: Better runtime type checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged, and fix typo in member name Created 9 years, 1 month 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: frog/world.dart
diff --git a/frog/world.dart b/frog/world.dart
index 08c7ec2010298046a152cff94fec324e0d0aab66..540e65d1c6192d84afc702488586f6ab42537933 100644
--- a/frog/world.dart
+++ b/frog/world.dart
@@ -92,6 +92,8 @@ class World {
Type objectType;
Type numType;
+ Type intType;
jimhug 2011/11/07 16:41:26 Darn. I was hoping we could pretend these just di
+ Type doubleType;
Type boolType;
Type stringType;
Type listType;
@@ -125,6 +127,8 @@ class World {
objectType = _addToCoreLib('Object', true);
numType = _addToCoreLib('num', false);
+ intType = _addToCoreLib('int', false);
+ doubleType = _addToCoreLib('double', false);
boolType = _addToCoreLib('bool', false);
stringType = _addToCoreLib('String', false);
listType = _addToCoreLib('List', false);
« frog/value.dart ('K') | « frog/var_member.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698