You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> @inbounds( f(x) = :x)
ERROR: unsupported or misplaced expression kw
julia> @generated( f(x) = :x)
ERROR: invalid syntax; @generated must be used with a function definition
it looks like the parsing is off and makes the function into :kw:
julia> macro m(x)
println(xdump(x))
end
julia> @m( f(x)=1)
Expr
head: Symbol kw
args: Array(Any,(2,))
1: Expr
head: Symbol call
args: Array(Any,(2,))
1: Symbol f
2: Symbol x
typ: Any::DataType <: Any
2: Int64 1
typ: Any::DataType <: Any
nothing
The text was updated successfully, but these errors were encountered:
This does not work:
it looks like the parsing is off and makes the function into
:kw
:The text was updated successfully, but these errors were encountered: