diff options
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r-- | test/definition/bug.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua index e7158848..8c446123 100644 --- a/test/definition/bug.lua +++ b/test/definition/bug.lua @@ -146,3 +146,26 @@ t.<!f1!> = t.f2 print(t.<?f2?>) ]] + +TEST [[ +---@type string +string.xx = '' +string.xx:<?format?>() +]] + +TEST [[ +---@class Foo +Foo = {} +function Foo:Constructor() + self.<!bar1!> = 1 +end + +---@class Foo2: Foo +Foo2 = {} +function Foo2:Constructor() +end + +---@type Foo2 +local v +v.<?bar1?> +]] |