c0d61795de
- we now distinguish bound/free parameters (see region-param test case for why this is necessary) - we also track bounds on region variables - also, restructure fold_ty() to have multiple variants without duplication instead of one overloaded folder. This also allows for using block functions.
16 lines
277 B
Rust
16 lines
277 B
Rust
// xfail-test
|
|
// ^ handling of self is currently broken
|
|
|
|
type clam = { chowder: &int };
|
|
|
|
impl clam for clam {
|
|
fn get_chowder() -> &self.int { ret self.chowder; }
|
|
}
|
|
|
|
fn main() {
|
|
let clam = { chowder: &3 };
|
|
log(debug, *clam.get_chowder());
|
|
clam.get_chowder();
|
|
}
|
|
|