LanguageServer.jl
LanguageServer.jl copied to clipboard
Incorrect possible method call error with LibPQ.jl
LibPQ.jl contains this code:
type_lookup = LayerDict(
PQTypeMap(type_map), jl_conn.type_map, LIBPQ_TYPE_MAP, _DEFAULT_TYPE_MAP
)
func_lookup = LayerDict(
PQConversions(conversions),
jl_conn.func_map,
LIBPQ_CONVERSIONS,
_DEFAULT_CONVERSIONS,
_FALLBACK_CONVERSION,
)
Both of these generate "Possible method call error", but those calls map straightforwardly to this method in LayerDicts: https://github.com/invenia/LayerDicts.jl/blob/fb278a2998b71b0e17c8c223028e265e113108aa/src/LayerDicts.jl#L31
In the first case, all types there are inferrable to PGTypeMap <: AbstractDict.
I was using Sublime Text 4 and LSP-julia with Julia 1.7, installed today.