2011-05-13 04:57:58 -05:00
|
|
|
// error-pattern: attempted dynamic environment-capture
|
2011-07-27 07:19:39 -05:00
|
|
|
obj foo(x: int) {
|
2011-05-13 04:57:58 -05:00
|
|
|
fn mth() {
|
2011-07-27 07:19:39 -05:00
|
|
|
fn bar() { log x; }
|
2011-05-13 04:57:58 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { foo(2); }
|