2011-08-04 17:27:51 -07: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 15:16:48 -07:00
|
|
|
let e = @{mutable refs: [], n: 0};
|
2011-12-22 17:53:53 -08:00
|
|
|
let f = lambda () { log(error, e.n); };
|
2011-08-19 15:16:48 -07:00
|
|
|
e.refs += [1];
|
2011-08-04 17:27:51 -07:00
|
|
|
}
|