summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/undefined-field.lua10
-rw-r--r--test/type_inference/common.lua2
2 files changed, 11 insertions, 1 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!>)
+]]
diff --git a/test/type_inference/common.lua b/test/type_inference/common.lua
index 5fcec805..4a29454a 100644
--- a/test/type_inference/common.lua
+++ b/test/type_inference/common.lua
@@ -3609,7 +3609,7 @@ TEST '-2|-3|1' [[
local <?n?>
]]
-TEST 'table' [[
+TEST 'enum A' [[
---@enum A
local m = {}