summaryrefslogtreecommitdiff
path: root/test/crossfile/references.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/references.lua')
-rw-r--r--test/crossfile/references.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index 0a6f0b57..6c28b34b 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -195,3 +195,25 @@ TEST {
]],
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@type A
+ local t
+
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@class A
+ local mt
+
+ function mt.<?f?>()
+ end
+ ]]
+ }
+}