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

Unified Diff: tests/language/naming_test.dart

Issue 11194033: Enable constructor name check by default (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tests/language/naming_test.dart
===================================================================
--- tests/language/naming_test.dart (revision 13746)
+++ tests/language/naming_test.dart (working copy)
@@ -488,19 +488,7 @@
$add(Object first, Object second) => second;
DartQuery $(Object obj) => new DartQuery(obj);
-// Ensure we don't have false positive. named constructor and methods
-// are in different namespaces, therefore it is ok to have a method
-// called foo and a named constructor CLASS.foo
-class Naming1Test {
- Naming1Test.foo() { }
- foo() { }
- static void main(args) {
- var a = new Naming1Test.foo();
- a.foo();
- }
-}
-
// Ensure we don't have false positive.
class Naming2Test {
Naming2Test() { }
@@ -521,6 +509,5 @@
main() {
NamingTest.testMain();
- Naming1Test.main(null);
Naming2Test.main(null);
}
« tests/language/named_constructor_test.dart ('K') | « tests/language/named_constructor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698