| Index: runtime/vm/parser.cc
|
| ===================================================================
|
| --- runtime/vm/parser.cc (revision 31369)
|
| +++ runtime/vm/parser.cc (working copy)
|
| @@ -3910,13 +3910,16 @@
|
| String::Handle(super_type.UserVisibleName()).ToCString());
|
| }
|
| // The class finalizer will check whether the super type is malbounded.
|
| - if (CurrentToken() == Token::kWITH) {
|
| - super_type = ParseMixins(super_type);
|
| - }
|
| if (is_mixin_declaration) {
|
| + if (CurrentToken() != Token::kWITH) {
|
| + ErrorMsg("mixin application clause 'with type' expected");
|
| + }
|
| cls.set_is_mixin_app_alias();
|
| cls.set_is_synthesized_class();
|
| }
|
| + if (CurrentToken() == Token::kWITH) {
|
| + super_type = ParseMixins(super_type);
|
| + }
|
| } else {
|
| // No extends clause: implicitly extend Object, unless Object itself.
|
| if (!cls.IsObjectClass()) {
|
|
|