diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index c211283a..578e75d4 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -562,3 +562,16 @@ local t for _, <?v?> in ipairs(t) do end ]] + +TEST 'E' [[ +---@class A +---@class B: A +---@class C: B +---@class D: C +---@class E: D +local m + +function m:f() + return <?self?> +end +]] |