-
Beta Was this translation helpful? Give feedback.
Answered by
tomlau10
Jan 31, 2026
Replies: 1 comment 1 reply
-
|
---@field [scope] <name[?]> <type> [description]https://luals.github.io/wiki/annotations/#field By default scope is ---@field public private boolean change the repository visibility(though it's a bit awkward... 🙈 ) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wsdjeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

privateis a reserved keyword for scope (along withprotected,public,package)---@field [scope] <name[?]> <type> [description]https://luals.github.io/wiki/annotations/#field
By default scope is
public.But since your field name is a reserved keyword for scope, I think you have to explicitly write it down as well:
---@field public private boolean change the repository visibility(though it's a bit awkward... 🙈 )