2011-08-04 19:27:51 -05:00
|
|
|
// This should typecheck even though the type of e is not fully
|
|
|
|
// resolved when we finish typechecking the lambda.
|
|
|
|
fn main() {
|
2011-08-19 17:16:48 -05:00
|
|
|
let e = @{mutable refs: [], n: 0};
|
|
|
|
let f = lambda () { log_err e.n; };
|
|
|
|
e.refs += [1];
|
2011-08-04 19:27:51 -05:00
|
|
|
}
|