robusta
robusta copied to clipboard
Java inheritance
And support - if not supported yet - and tests. The best way, I believe, is to make Rust wrapper of a child java class a NewType for a Rust wrapper of the according Java ancestor, with Deref trait implemented. It won't work exactly like in Java - with virtual methods - but it'll allow to call ancestor's methods from the descendant.
Need to ensure it works well with abstract classes. And how to support interfaces: traits, separate types with cheap as/into conversions?
Also check nested and inner classes, static fields