Parse and typecheck by-value and by-ref arg specs
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
This commit is contained in:
parent
4709038d64
commit
f9fbd86f52
32 changed files with 230 additions and 197 deletions
|
|
@ -76,7 +76,7 @@ fn map_expr(cx: ctx, ex: @expr) {
|
|||
}
|
||||
|
||||
fn new_smallintmap_int_adapter<@V>() -> std::map::hashmap<int, V> {
|
||||
let key_idx = fn (key: int) -> uint { key as uint };
|
||||
let key_idx = fn (&&key: int) -> uint { key as uint };
|
||||
let idx_key = fn (idx: uint) -> int { idx as int };
|
||||
ret new_smallintmap_adapter(key_idx, idx_key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue