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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 12033049: Disallow mixing in classes that use 'super'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge from master. Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 class MessageKind { 7 class MessageKind {
8 final String template; 8 final String template;
9 const MessageKind(this.template); 9 const MessageKind(this.template);
10 10
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind( 309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind(
310 "Error: class used as mixin must have Object as superclass."); 310 "Error: class used as mixin must have Object as superclass.");
311 311
312 static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind( 312 static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind(
313 "Error: class used as mixin cannot have non-factory constructor."); 313 "Error: class used as mixin cannot have non-factory constructor.");
314 314
315 static const ILLEGAL_MIXIN_CYCLE = const MessageKind( 315 static const ILLEGAL_MIXIN_CYCLE = const MessageKind(
316 "Error: class used as mixin introduces mixin cycle: #{1} <-> #{2}."); 316 "Error: class used as mixin introduces mixin cycle: #{1} <-> #{2}.");
317 317
318 static const ILLEGAL_MIXIN_WITH_SUPER = const MessageKind(
319 "Error: cannot use class #{1} as a mixin because it uses super.");
320
321 static const ILLEGAL_MIXIN_SUPER_USE = const MessageKind(
322 "Use of super in class used as mixin.");
323
318 static const PARAMETER_NAME_EXPECTED = const MessageKind( 324 static const PARAMETER_NAME_EXPECTED = const MessageKind(
319 "Error: parameter name expected."); 325 "Error: parameter name expected.");
320 326
321 static const CANNOT_RESOLVE_GETTER = const MessageKind( 327 static const CANNOT_RESOLVE_GETTER = const MessageKind(
322 'cannot resolve getter.'); 328 'cannot resolve getter.');
323 329
324 static const CANNOT_RESOLVE_SETTER = const MessageKind( 330 static const CANNOT_RESOLVE_SETTER = const MessageKind(
325 'cannot resolve setter.'); 331 'cannot resolve setter.');
326 332
327 static const VOID_NOT_ALLOWED = const MessageKind( 333 static const VOID_NOT_ALLOWED = const MessageKind(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 484
479 class CompileTimeConstantError extends Diagnostic { 485 class CompileTimeConstantError extends Diagnostic {
480 CompileTimeConstantError(MessageKind kind, List arguments) 486 CompileTimeConstantError(MessageKind kind, List arguments)
481 : super(kind, arguments); 487 : super(kind, arguments);
482 } 488 }
483 489
484 class CompilationError extends Diagnostic { 490 class CompilationError extends Diagnostic {
485 CompilationError(MessageKind kind, List arguments) 491 CompilationError(MessageKind kind, List arguments)
486 : super(kind, arguments); 492 : super(kind, arguments);
487 } 493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698