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

Unified Diff: runtime/vm/parser.cc

Issue 10933039: Make int an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now with correct base. 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: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index b987a36480c377803af0fdb121bb0323d91cf32b..fd493c49b79cb8c7def337e7cff218c9370ac3fa 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -4939,7 +4939,7 @@ bool Parser::TryParseTypeParameter() {
bool Parser::IsSimpleLiteral(const AbstractType& type, Instance* value) {
bool no_check = type.IsDynamicType();
if ((CurrentToken() == Token::kINTEGER) &&
- (no_check || type.IsIntInterface() || type.IsNumberType())) {
+ (no_check || type.IsIntType() || type.IsNumberType())) {
*value = CurrentIntegerLiteral();
return true;
} else if ((CurrentToken() == Token::kDOUBLE) &&

Powered by Google App Engine
This is Rietveld 408576698