We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The call to my_c.foo() in this program segfaults:
my_c.foo()
fn main() { obj a() { fn foo() -> int { ret 2; } } auto my_a = a(); auto my_b = obj() { with my_a }; assert (my_b.foo() == 2); auto my_c = obj() { with my_b }; assert (my_c.foo() == 2); }