Chromium Code Reviews| Index: tests/language/src/FactoryArrowTest.dart |
| =================================================================== |
| --- tests/language/src/FactoryArrowTest.dart (revision 0) |
| +++ tests/language/src/FactoryArrowTest.dart (revision 0) |
| @@ -0,0 +1,12 @@ |
| +// 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 A { |
| + A.foo() {} |
| + factory A() => new A.foo(); |
| +} |
| + |
| +main() { |
| + Expect.isTrue(new A() is A); |
|
kasperl
2011/10/25 08:27:56
Indent one more.
ngeoffray
2011/10/25 08:33:00
Done. I'd like to say I left it here on purpose...
|
| +} |