diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-08-16 19:52:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-08-16 19:52:07 +0800 |
commit | f8a81672da06e36d8ff63409f76938c424ce6216 (patch) | |
tree | 23dd2ee2f9216a43ed2dc85f4e289e7a4291bb7a /test/diagnostics | |
parent | 080d672ee4bbc082a24aef95821860afa78a7d9f (diff) | |
download | lua-language-server-f8a81672da06e36d8ff63409f76938c424ce6216.zip |
`undefined-field` supports `enum`
close #2469
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/undefined-field.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/undefined-field.lua b/test/diagnostics/undefined-field.lua index aff329fb..24232eb5 100644 --- a/test/diagnostics/undefined-field.lua +++ b/test/diagnostics/undefined-field.lua @@ -146,3 +146,13 @@ local t local n = t:upper() ]] + +TEST [[ +---@enum X +X = { + A = 1, + B = 2 +} + +print(X.<!C!>) +]] |