From 659cc0e395719b2816615f1f8efc750292105144 Mon Sep 17 00:00:00 2001 From: sumneko Date: Mon, 22 Apr 2019 20:18:27 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=20EmmyTypeUnit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/definition/function.lua | 2 +- server/test/definition/init.lua | 2 +- server/test/definition/set.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/test/definition') diff --git a/server/test/definition/function.lua b/server/test/definition/function.lua index aae5786f..ce20f50b 100644 --- a/server/test/definition/function.lua +++ b/server/test/definition/function.lua @@ -18,7 +18,7 @@ end TEST [[ local -function x() +function () end () ]] diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua index cad120f7..1ff5881e 100644 --- a/server/test/definition/init.lua +++ b/server/test/definition/init.lua @@ -45,7 +45,7 @@ function TEST(script) local vm = buildVM(ast) assert(vm) - local positions = core.definition(vm, pos, 'definition', nil) + local positions = core.definition(vm, pos, 'definition') if positions then assert(founded(target, positions)) else diff --git a/server/test/definition/set.lua b/server/test/definition/set.lua index 54df1e7a..44277d33 100644 --- a/server/test/definition/set.lua +++ b/server/test/definition/set.lua @@ -23,7 +23,7 @@ x = 1 do local = 1 do - x = 2 + = 2 end () end -- cgit v1.2.3