Skip to content

No warning for missing inherited fields #2337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
felixhirt opened this issue Sep 20, 2023 · 0 comments · Fixed by #2970
Closed

No warning for missing inherited fields #2337

felixhirt opened this issue Sep 20, 2023 · 0 comments · Fixed by #2970
Labels
feat/diagnostics Related to the diagnostics feature

Comments

@felixhirt
Copy link

felixhirt commented Sep 20, 2023

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

If we write this code:

--- @class Base
--- @field BaseString string
--- @field BaseNum number?

--- @class Extended : Base
--- @field ExtendedString string
--- @field ExtendedNum number?

--- @type Extended
local instance = { ExtendedString = "Value" }

There should be a warning about the missing required field "BaseString"

Actual Behaviour

There is only a warning if "ExtendedString" is missing

Reproduction steps

Copy the code above into any lua project

Additional Notes

No response

Log File

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/diagnostics Related to the diagnostics feature
Projects
None yet
2 participants