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

Unified Diff: tests/language/named_constructor_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
« no previous file with comments | « tests/language/language.status ('k') | tests/language/naming_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/named_constructor_test.dart
===================================================================
--- tests/language/named_constructor_test.dart (revision 13746)
+++ tests/language/named_constructor_test.dart (working copy)
@@ -1,25 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class NamedConstructorTest {
- int x_;
-
- NamedConstructorTest.fill(int x) {
- // Should resolve to the fill method
- fill(x);
- }
-
- void fill(int x) {
- x_ = x;
- }
-
- static testMain() {
- var a = new NamedConstructorTest.fill(3);
- assert(a.x_ == 3);
- }
-}
-
-main() {
- NamedConstructorTest.testMain();
-}
regis 2012/10/17 19:01:36 Why not make this test a negative test? Or is this
hausner 2012/10/17 19:05:50 It's covered by co19 test 6_Constructors_A01_t01
« no previous file with comments | « tests/language/language.status ('k') | tests/language/naming_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698