diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 2 | ||||
-rw-r--r-- | test/signature/init.lua | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index fa7d3f22..d0e50036 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -245,7 +245,7 @@ function string.sub(s: string, i: integer, j?: integer) TEST[[ ('xx'):<?sub?>() ]] -[[function string:sub(i: integer, j?: integer) +[[function string.sub(s: string, i: integer, j?: integer) -> string]] TEST [[ diff --git a/test/signature/init.lua b/test/signature/init.lua index c7483c87..372709e3 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -214,3 +214,16 @@ function pairs(t: <T>) ]], arg = {16, 21}, } + +TEST [[ +function m:f() +end + +m.f($) +]] +{ + label = [[ +function m.f(self: table) +]], + arg = {14, 24}, +} |