From e745667530f0d4fd340beebc1545f86c76c78af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 28 Mar 2022 22:28:24 +0800 Subject: update --- test/references/common.lua | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'test/references/common.lua') diff --git a/test/references/common.lua b/test/references/common.lua index e95a4031..2331aa91 100644 --- a/test/references/common.lua +++ b/test/references/common.lua @@ -1,6 +1,6 @@ local config = require "config" TEST [[ -local !> = 1 +local = 1 = ]] @@ -38,12 +38,12 @@ end TEST [[ local a = 1 -local !> = 1 +local = 1 = ]] TEST [[ -local !> +local local b = ]] @@ -81,22 +81,9 @@ t[a.b.c] = 1 TEST [[ local t = {} t.x = 1 -t[a.b.] = 1 +t[a.b.!>] = 1 ]] -config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) -TEST [[ -local t -local = t. - -() - -return { - = , -} -]] -config.set(nil, 'Lua.IntelliSense.traceBeSetted', false) - TEST [[ self = { results = { @@ -112,22 +99,36 @@ print(a.b.) ]] TEST [[ -local = {} +local mt = {} +function mt:x() + !>:x() +end +]] + +TEST [[ +local = {} function :x() - :x() + self:x() +end +]] + +TEST [[ +local mt = {} +function mt:x() + self:!>() end ]] TEST [[ local mt = {} -function mt:() - self:() +function mt:() + self:() end ]] TEST [[ a..c = 1 -print(a..c) +print(a.!>.c) ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) -- cgit v1.2.3