Chromium Code Reviews| Index: runtime/vm/parser.cc |
| =================================================================== |
| --- runtime/vm/parser.cc (revision 28477) |
| +++ runtime/vm/parser.cc (working copy) |
| @@ -3805,6 +3805,13 @@ |
| ConsumeToken(); |
| const intptr_t type_pos = TokenPos(); |
| super_type = ParseType(ClassFinalizer::kResolveTypeParameters); |
| + if (super_type.IsDynamicType()) { |
| + // The string 'dynamic' is not resolved yet a this point, but a malformed |
|
rmacnak
2013/10/10 23:26:37
at this point
regis
2013/10/10 23:29:54
Done.
|
| + // type mapped to dynamic can be encountered here. |
| + ErrorMsg(type_pos, |
| + "class '%s' may not extend a malformed type", |
| + class_name.ToCString()); |
| + } |
| if (super_type.IsTypeParameter()) { |
| ErrorMsg(type_pos, |
| "class '%s' may not extend type parameter '%s'", |