LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Incorrect possible method call error

Open Octogonapus opened this issue 4 years ago • 0 comments

This code causes a linter warning for a possible method call error, but I don't see an issue:

struct Foo x::Int end
bar(f::T) where {T <: Foo} = T(f.x)

The linter underlines T(f.x). I am using Julia 1.6.1 and julia-vscode 1.1.40.

Octogonapus avatar May 22 '21 20:05 Octogonapus