7efef98901
Get rid of expr_self_call, introduces def_self. `self` is now, syntactically, simply a variable. A method implicitly brings a `self` binding into scope. Issue #1227
13 lines
150 B
Rust
13 lines
150 B
Rust
// error-pattern:attempted field access on type fn
|
|
fn main() {
|
|
|
|
obj foo() {
|
|
fn m() {
|
|
self();
|
|
}
|
|
}
|
|
|
|
let a = foo;
|
|
a.m();
|
|
}
|