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]> 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
>
>
>

Reply via email to