Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index b2a85d24198f008f5b3fd154a6d094855c1d3614..94875a6b396097937e68d5d385f4aa508c38e3f5 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -4716,7 +4716,7 @@ void Parser::ParseEnumDefinition(const Class& cls) { |
SkipMetadata(); |
ExpectToken(Token::kENUM); |
- const String& enum_name = String::Handle(Z, cls.Name()); |
+ const String& enum_name = String::Handle(Z, cls.PrettyName()); |
ClassDesc enum_members(Z, cls, enum_name, false, cls.token_pos()); |
// Add instance field 'final int index'. |