Skip to content

Commit

Permalink
Test case for issue #758.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuper committed Aug 9, 2011
1 parent b83167c commit eaefb0f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/run-pass/first-class-method.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// xfail-stage1
// xfail-stage2
// xfail-stage3

// Test case for issue #758.
obj foo() { fn f() { } }

fn main() {
let my_foo = foo();
let f = my_foo.f;
}

0 comments on commit eaefb0f

Please sign in to comment.