Nope, not possible currently. See this[1] issue for the discussion. [1] https://github.com/JuliaLang/julia/issues/269
On Friday, December 5, 2014 11:28:15 PM UTC-8, Ben Cherian wrote: > > I was wondering if it was possible to create two types that explicitly > reference each other. > > The following doesn't work in IJulia (Julia v0.3.3) > > type A > x::B > end > > type B > x::A > end > > I can fake it by making a dummy abstract supertype of B (say _B) and using > it in the definition of A, but this seems to be a rather ugly hack in what > otherwise is a pretty clean language... >
