File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9502fb99e0d535c8ced17ac61e63ebbd67b7dba7
2
+ refs/heads/master: 7cc0f554ae7fe1c3891e945e3f39b2e93e8cc564
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change
1
+ // test that invoking functions which require
2
+ // dictionaries from inside an fn@ works
3
+ // (at one point, it didn't)
4
+
5
+ fn mk_nil < C : ty_ops > ( cx : C ) -> uint {
6
+ cx. mk ( )
7
+ }
8
+
9
+ iface ty_ops {
10
+ fn mk( ) -> uint;
11
+ }
12
+
13
+ impl of ty_ops for ( ) {
14
+ fn mk ( ) -> uint { 22 u }
15
+ }
16
+
17
+ fn main ( ) {
18
+ let fn_env = fn @( ) -> uint {
19
+ mk_nil( ( ) )
20
+ } ;
21
+ assert fn_env( ) == 22 u;
22
+ }
You can’t perform that action at this time.
0 commit comments