Sorry to revive this. Using Compat 1.3.0
, and Julia v0.6.4, I get the following error:
julia> using Compat
INFO: Recompiling stale cache file /homes/USER/.julia/lib/v0.6/Compat.ji for module Compat.
julia> Pkg.status("Compat")
- Compat 1.3.0
julia> @compat f(; x::Int64) = x
ERROR: syntax: invalid keyword argument syntax "x::Int64" (expected assignment)
julia> @compat function(; x::Int64)
return x
end
ERROR: syntax: invalid keyword argument syntax "x::Int64" (expected assignment)
What am I messing up?