lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

false positive in undefined-field

Open tamaroning opened this issue 1 year ago • 0 comments

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

function F()
    G = 1
end

function F2()
    G = { a = 1 }
end

F()
F2()

print(G.a)

expected no error

Actual Behaviour

but got an error image

Reproduction steps

enable vscode extension

Additional Notes

No response

Log File

No response

tamaroning avatar Aug 25 '24 03:08 tamaroning