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
module M
struct MyNumber
sign::Bool
exponent::Int
mantissa::Int
end
function BigFloat(::MyNumber)
...
end
function cube_root(x::BigFloat)
...
end
end # module M
This yields blue squiggles under the definition of function cube_root(x::BigFloat) with the following message:
A non-DataType has been used in a type declaration statement. Julia(InvalidTypeDeclaration)
Here, the presence of a new constructor BigFloat(::MyNumber) has caused StaticLint to stop regarding BigFloat as a type. This pattern occurs a few times in my package MultiFloats.jl.
The text was updated successfully, but these errors were encountered:
Consider the following Julia code:
This yields blue squiggles under the definition of function
cube_root(x::BigFloat)
with the following message:Here, the presence of a new constructor
BigFloat(::MyNumber)
has caused StaticLint to stop regardingBigFloat
as a type. This pattern occurs a few times in my package MultiFloats.jl.The text was updated successfully, but these errors were encountered: