Skip to content

Conversation

firas-assaad
Copy link
Contributor

In the following example:

---@param t { x: integer }
local function test(t)
    t.w = 1
end

I get this message: Fields cannot be injected into the reference of { x: integer } for w. 如要允许注入,请在定义中添加 [any]: any

I translated the message after checking Google Translate and DeepL. I also fixed a couple of typos and removed outdated translation TODOs.

@sumneko sumneko merged commit f796504 into LuaLS:master Aug 29, 2023
@sumneko
Copy link
Collaborator

sumneko commented Aug 29, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants