| 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) &&
|
|
|