The following is an MWE from a typo that I made during refactoring some code:
struct Foo{Float64}
x::Int
Foo() = new(1)
end
that gave the curious error message
WARNING: deprecated syntax "inner constructor Foo(...) around /tmp/e.jl:3".
Use "Foo{Float64}(...) where Float64" instead.
Am I right in thinking that in
struct Foo{Float64}
x::Int
Foo{Float64}() where Float64 = new(1)
end
the Float64
is a type parameter, eg fully replaceable with T
or something without changing the semantics?