Add test for #2633. Xfailed.

This commit is contained in:
Tim Chevalier 2012-06-15 17:32:59 -07:00
parent 6e63e2fd5f
commit f0d8e978a9
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// Currently segfaults
// xfail-test
class cat {
let mut meow: fn@();
new() { self.meow = fn@() { #error("meow"); };}
}
type kitty_info = {kitty: cat};
// Code compiles and runs successfully if we add a + before the first arg
fn nyan(kitty: cat, _kitty_info: kitty_info) {
kitty.meow();
}
fn main() {
let mut kitty = cat();
nyan(kitty, {kitty: kitty});
}