Open Wh1teDuke opened 1 month ago
I think its doing so is fine.
If using C++/java's class[^cls] as reference, maybe we shall enforce subclass's method must be also exported if its parent does.
However, such a change may break some existing code, but such a break that turns potential pitfalls to compile-error shall be called as improvement.
[^cls]: As in Nim there is just no concept like public/private in C++ or Java. There is just module-level isolation in Nim, which in turn C++ doesn't have (at least before C++23).
Code
Expected
Foo
Got
Bar B
I'm more concerned about the fact that it resolves to BarB.test and I think the compiler should complain.