asledgehammer / Candle-Compiler

GNU Lesser General Public License v3.0
2 stars 3 forks source link

(some) Unexposed classes should still have class definitions #7

Open demiurgeQuantified opened 2 weeks ago

demiurgeQuantified commented 2 weeks ago

Classes that aren't exposed can still be returned by and then passed to methods, but as these classes aren't exposed Candle doesn't declare them. Surprisingly, not declaring a class doesn't actually seem to cause any issues with intellisense (it still recognises it as a distinct type) but it raises some warnings with type annotations: image To resolve this all classes should have a declaration, or at least all classes that can be returned by a method.