Hi, everybody!
If I didn’t misunderstood docs, types within a package should be mutually visible without importing. It doesn’t work for me, however.
File1:
package common.basic.sprites;
enum SpriteKind { ... };
typedef SpRegistry = Map<SpriteKind,Int>;
interface ISprite {
File2:
package common.basic.sprites;
class BasicSprite implements ISprite {
private var reg:SpRegistry;
Compiler complains about SpRegistry - type not found. What am I doing wrong here? Interestingly, it apparently has no problem with ISprite - so it is visible, but SpRegistry is not even if they are in the same package.