Index: tests/language/src/ConstructorReturnTest.dart |
diff --git a/tests/language/src/ConstructorReturnTest.dart b/tests/language/src/ConstructorReturnTest.dart |
deleted file mode 100644 |
index 0e49400a017a24931f7c4347cffdc9a9f4a38a7a..0000000000000000000000000000000000000000 |
--- a/tests/language/src/ConstructorReturnTest.dart |
+++ /dev/null |
@@ -1,15 +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. |
- |
-// Dart spec 0.03, section 11.10 - generative constructors can only have return |
-// statements in the form 'return;'. |
-class A { |
- int x; |
- A(this.x) { return; } // 'return;' is equivalent to 'return this;' |
- int foo(int y) => x + y; |
-} |
- |
-main() { |
- Expect.equals((new A(1)).foo(10), 11); |
-} |