Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn foo(r: ref Base) {
- r = new Base();
- }
- fn bar() {
- Derived d = new Derived();
- foo(ref d);
- d.derived_method(); // whooops
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement