我有以下代码
using Plots
function test()::nothing
A::Array{Float64,1} = rand(Float64,100)
plot(A)
end
我像这样在朱莉娅跑
julia> include("main.jl")
test (generic function with 1 method)
julia> test()
ERROR: MethodError: First argument to `convert` must be a Type, got nothing
Stacktrace:
[1] test() at /path/to/main.jl:85
[2] top-level scope at REPL[2]:1
为什么我会收到错误消息First argument to convert must be a Type, got nothing
?