How do I make the new inner constructor syntax
immutable Foo{T}
Foo{T}() where T = new()
end
compatible with 0.5? I tried @compat
with no luck.
How do I make the new inner constructor syntax
immutable Foo{T}
Foo{T}() where T = new()
end
compatible with 0.5? I tried @compat
with no luck.
No @compat
needed on 0.5.
Ah, so this:
immutable Foo{T}
(::Type{Foo{T}}){T}() = new{T}()
end
Beautiful