OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // Test calling convention of property extraction closures (super edition). | |
6 library bound_closure_super_test; | |
7 | |
8 import 'bound_closure_test.dart' as bound_closure_test; | |
9 | |
10 main() { | |
11 bound_closure_test.main(); | |
floitsch
2013/12/20 13:17:37
Explain that the origin main is doing some setup t
ahe
2013/12/20 13:26:37
Done.
| |
12 | |
13 var csfoo = inscrutable(c).superfoo; | |
floitsch
2013/12/20 13:17:37
"c" is unbound.
ahe
2013/12/20 13:26:37
Nice catch. Also, inscrutable and makeCC were unbo
| |
14 | |
15 Expect.equals('BB.foo(1, B)', csfoo(1)); | |
16 Expect.equals('BB.foo(2, 3)', csfoo(2, 3)); | |
17 } | |
OLD | NEW |