Closed
Description
Describe the bug
上面应该也提示 Foo 的 bar1、bar2 才对,结果只有 Foo2 的 bar3。
To Reproduce
---@class Foo
Foo = {}
function Foo:Constructor()
self.bar1 = 1
self.bar2 = 1
end
---@class Foo2: Foo
Foo2 = {}
function Foo2:Constructor()
self.bar3 = 1
end
---@type Foo2
local v
print(v.)
拷贝上面内容到新lua文件,对“print(v.)”里的.
删除再重输,可复现。
Expected behavior
应该 bar1、bar2、bar3 均出现。
btw,如果 Foo、Foo2 为 local 变量,而不是全局变量,不会有上述问题。
Screenshots
上面已附加
Environment (please complete the following information):
- OS: Windows
- Is WSL remote? no
- Client: VSCode
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels