diff options
Diffstat (limited to 'test/diagnostics/undefined-field.lua')
-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!>) +]] |