Indolering
Indolering

Reputation: 3136

Does Haxe pickup on typedefs in interfaces and classes?

If I declare a typedef in a class or interface, can classes that import/implement the class/interface use the typedef?

Upvotes: 0

Views: 191

Answers (1)

stroncium
stroncium

Reputation: 1430

You import a module, which can have a list of typedefs and direct definitions in it(and MUST have one definition with the same name as module). If definition isn't marked as private, it will be imported in your scope and you will be able to use it(with or without namespace).

Upvotes: 2

Related Questions