| OLD | NEW |
| 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 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 "Error: Constant expressions can't refer to type variables.", | 530 "Error: Constant expressions can't refer to type variables.", |
| 531 howToFix: "Try removing the type variable or replacing it with a " | 531 howToFix: "Try removing the type variable or replacing it with a " |
| 532 "concrete type.", | 532 "concrete type.", |
| 533 examples: const [""" | 533 examples: const [""" |
| 534 class C<T> { | 534 class C<T> { |
| 535 const C(); | 535 const C(); |
| 536 | 536 |
| 537 m(T t) => const C<T>(); | 537 m(T t) => const C<T>(); |
| 538 } | 538 } |
| 539 | 539 |
| 540 void main() => new C().m(null); | 540 void main() => new C().m(null); |
| 541 """ | 541 """ |
| 542 ]); | 542 ]); |
| 543 | 543 |
| 544 | 544 |
| 545 static const MessageKind INVALID_TYPE_VARIABLE_BOUND = const MessageKind( | 545 static const MessageKind INVALID_TYPE_VARIABLE_BOUND = const MessageKind( |
| 546 "Warning: '#{typeArgument}' is not a subtype of bound '#{bound}' for " | 546 "Warning: '#{typeArgument}' is not a subtype of bound '#{bound}' for " |
| 547 "type variable '#{typeVariable}' of type '#{thisType}'.", | 547 "type variable '#{typeVariable}' of type '#{thisType}'.", |
| 548 howToFix: "Try to change or remove the type argument.", | 548 howToFix: "Try to change or remove the type argument.", |
| 549 examples: const [""" | 549 examples: const [""" |
| 550 class C<T extends num> {} | 550 class C<T extends num> {} |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 | 1568 |
| 1569 class CompileTimeConstantError extends Diagnostic { | 1569 class CompileTimeConstantError extends Diagnostic { |
| 1570 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1570 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1571 : super(kind, arguments, terse); | 1571 : super(kind, arguments, terse); |
| 1572 } | 1572 } |
| 1573 | 1573 |
| 1574 class CompilationError extends Diagnostic { | 1574 class CompilationError extends Diagnostic { |
| 1575 CompilationError(MessageKind kind, Map arguments, bool terse) | 1575 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1576 : super(kind, arguments, terse); | 1576 : super(kind, arguments, terse); |
| 1577 } | 1577 } |
| OLD | NEW |