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> A(10, 10)
ERROR: MethodError: Cannot `convert` an object of type A to an object of type Int64
Closest candidates are:
convert(::Type{T}, ::Ptr) where T<:Integer
@ Base pointer.jl:23
convert(::Type{T}, ::T) where T<:Number
@ Base number.jl:6
convert(::Type{T}, ::Number) where T<:Number
@ Base number.jl:7
...
Stacktrace:
[1] A(f::Int64, h::Int64)
@ Main ./REPL[1]:5
[2] top-level scope
@ REPL[2]:1
Constructor does not check return type
The text was updated successfully, but these errors were encountered: