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

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

Issue 52263003: Implement least upper bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698