blob: 36b93774c86f78387c5ba7ee78ecb3a819baacfa (
plain)
1
2
3
4
5
6
7
|
// This should typecheck even though the type of e is not fully
// resolved when we finish typechecking the fn@.
fn main() {
let e = @{mut refs: [], n: 0};
let f = fn@ () { log(error, e.n); };
e.refs += [1];
}
|