Index: tests/language/closure_in_initializer2_test.dart |
=================================================================== |
--- tests/language/closure_in_initializer2_test.dart (revision 26191) |
+++ tests/language/closure_in_initializer2_test.dart (working copy) |
@@ -2,12 +2,16 @@ |
// 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. |
+// Test that a parameter used in a closure is properly boxed. |
+ |
import "package:expect/expect.dart"; |
-class S { |
+abstract class S { |
S() { |
Expect.equals(2, this.f()); |
} |
+ |
+ get f; |
} |
class A extends S { |