recursive type parameters

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

recursive type parameters

François Rey
Does haXe support recursive type parameters?
I'm having trouble compiling this:

interface IModule { }
class Facade {}
class Module<M:IModule, F:ModuleFacade <M , F > > implements IModule {}
class ModuleFacade < M:IModule, F:ModuleFacade < M, F > > extends Facade {}
class Test {
        public static function main() { }
}

Test.hx:4: characters 0-75 : Class not found : M


--
haXe - an open source web programming language
http://haxe.org