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

Side by Side Diff: pkg/dart_messages/lib/shared_messages.dart

Issue 2039243002: Revert "New tests for initializing formal access." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // An update to this file must be followed by regenerating the corresponding 5 // An update to this file must be followed by regenerating the corresponding
6 // json, dart2js and analyzer file. Use `publish.dart` in the bin directory. 6 // json, dart2js and analyzer file. Use `publish.dart` in the bin directory.
7 // 7 //
8 // Every message in this file must have an id. Use `message_id.dart` in the 8 // Every message in this file must have an id. Use `message_id.dart` in the
9 // bin directory to generate a fresh one. 9 // bin directory to generate a fresh one.
10 10
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 id: 'ERUSKD', 675 id: 'ERUSKD',
676 subId: 7, 676 subId: 7,
677 categories: [ 677 categories: [
678 Category.staticTypeWarning, 678 Category.staticTypeWarning,
679 Category.staticWarning, 679 Category.staticWarning,
680 Category.hint 680 Category.hint
681 ], 681 ],
682 template: "The setter '#{memberName}' is not defined for the " 682 template: "The setter '#{memberName}' is not defined for the "
683 "class '#{className}'.", 683 "class '#{className}'.",
684 usedBy: [dart2js, analyzer], 684 usedBy: [dart2js, analyzer],
685 // TODO(eernst): When this.x access is available, add examples here,
686 // e.g., "class A { var x; A(this.x) : x = 3; } main() => new A(2);"
687 examples: const ["class A {} main() { new A().x = 499; }",]), 685 examples: const ["class A {} main() { new A().x = 499; }",]),
688 686
689 'NO_SUCH_SUPER_MEMBER': new Message( 687 'NO_SUCH_SUPER_MEMBER': new Message(
690 id: 'ERUSKD', 688 id: 'ERUSKD',
691 subId: 8, 689 subId: 8,
692 categories: [Category.staticTypeWarning], 690 categories: [Category.staticTypeWarning],
693 template: 691 template:
694 "Can't resolve '#{memberName}' in a superclass of '#{className}'.", 692 "Can't resolve '#{memberName}' in a superclass of '#{className}'.",
695 usedBy: [dart2js]), 693 usedBy: [dart2js]),
696 694
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 main() { x = 3; } 873 main() { x = 3; }
876 """, 874 """,
877 """ 875 """
878 const x = 1; 876 const x = 1;
879 main() { x = 3; } 877 main() { x = 3; }
880 """, 878 """,
881 "get foo => null main() { foo = 5; }", 879 "get foo => null main() { foo = 5; }",
882 "const foo = 0 main() { foo = 5; }", 880 "const foo = 0 main() { foo = 5; }",
883 ]), 881 ]),
884 }; 882 };
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | tests/language/initializing_formal_capture_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698