summaryrefslogtreecommitdiff
path: root/test/crossfile/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/definition.lua')
-rw-r--r--test/crossfile/definition.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index d492761e..308c754f 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -805,3 +805,27 @@ print(b.<?test?>)
]]
}
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+---@class A
+local t
+
+t.<!a!> = 1
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+---@class B
+local t
+
+---@type A
+t.x = nil
+
+print(t.x.<?a?>)
+ ]]
+ }
+}