it's discussed at https://github.com/JuliaLang/julia/issues/5876
On Monday, 17 March 2014 11:27:32 UTC-3, Jacques Rioux wrote: > > Fil, > > Isn't the problem simply that you are defining a function that takes no > parameters yet you assert that this non existant parameter is of type T? > > That does not seem like a good idea. > On Feb 19, 2014 1:35 AM, "Fil Mackay" > <[email protected]<javascript:>> > wrote: > >> Is there anything fundamentally wrong in this minimalistic example? >> >> module A # removing the module resolves the error >> macro x() >> quote >> function f{T}(::Type{T}) # removing this function resolves the >> error >> end >> Nothing >> end >> end >> end >> >> import A >> >> A.@x() >> >> #syntax: malformed type parameter list >> >> #while loading In[4], in expression starting on line 13 >> >> >>
