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

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

Issue 12045015: Disallow mixing in classes where the superclass != Object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind( 300 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind(
301 "Error: cannot have final modifier on method."); 301 "Error: cannot have final modifier on method.");
302 302
303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( 303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind(
304 "Error: illegal constructor modifiers: #{1}."); 304 "Error: illegal constructor modifiers: #{1}.");
305 305
306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind( 306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind(
307 "Error: illegal mixin application modifiers: #{1}."); 307 "Error: illegal mixin application modifiers: #{1}.");
308 308
309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind(
310 "Error: illegal superclass for class used as mixin.");
Johnni Winther 2013/01/22 08:57:50 Maybe explain why the superclass is illegal, that
kasperl 2013/01/22 09:00:28 Done.
311
309 static const PARAMETER_NAME_EXPECTED = const MessageKind( 312 static const PARAMETER_NAME_EXPECTED = const MessageKind(
310 "Error: parameter name expected."); 313 "Error: parameter name expected.");
311 314
312 static const CANNOT_RESOLVE_GETTER = const MessageKind( 315 static const CANNOT_RESOLVE_GETTER = const MessageKind(
313 'cannot resolve getter.'); 316 'cannot resolve getter.');
314 317
315 static const CANNOT_RESOLVE_SETTER = const MessageKind( 318 static const CANNOT_RESOLVE_SETTER = const MessageKind(
316 'cannot resolve setter.'); 319 'cannot resolve setter.');
317 320
318 static const VOID_NOT_ALLOWED = const MessageKind( 321 static const VOID_NOT_ALLOWED = const MessageKind(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 472
470 class CompileTimeConstantError extends Diagnostic { 473 class CompileTimeConstantError extends Diagnostic {
471 CompileTimeConstantError(MessageKind kind, List arguments) 474 CompileTimeConstantError(MessageKind kind, List arguments)
472 : super(kind, arguments); 475 : super(kind, arguments);
473 } 476 }
474 477
475 class CompilationError extends Diagnostic { 478 class CompilationError extends Diagnostic {
476 CompilationError(MessageKind kind, List arguments) 479 CompilationError(MessageKind kind, List arguments)
477 : super(kind, arguments); 480 : super(kind, arguments);
478 } 481 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698