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
struct TestStruct
a
b
endstruct TestWrapper
s::TestStructend# linter generates "missing references" for s.bfunctiontest(wrapper::TestWrapper)
(; s) = wrapper
s.b
end# but works fine if not using the destructuring syntaxfunctiontest_2(wrapper::TestWrapper)
s = wrapper.s
s.b
end
The linter has the following behavior:
The text was updated successfully, but these errors were encountered:
Just replying to this issue to say that I'm running into this as well right now. Based on the suggestions that the language server is providing, it thinks that the type of s is TestWrapper instead of TestStruct.
The warnings at s.b doesn't show up here for some reason, but in more complicated code I do get equivalent warnings.
A minimal example to demonstrate this:
For the following code
The linter has the following behavior:
The text was updated successfully, but these errors were encountered: