summaryrefslogtreecommitdiff
path: root/test/references/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/references/common.lua')
-rw-r--r--test/references/common.lua76
1 files changed, 16 insertions, 60 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index 2331aa91..74ce391a 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -131,44 +131,6 @@ a.<!b!>.c = 1
print(a.<!<?b?>!>.c)
]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', true)
-TEST [[
-local <?f?>
-local t = {
- <!a!> = <!f!>
-}
-print(t.<!a!>)
-]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', false)
-
-TEST [[
-local <!f!>
-local <!t!> = <?f?>
-]]
-
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', true)
-TEST [[
-local <!f!>
-a.<!t!> = <?f?>
-]]
-
-TEST [[
-<!t!>.<!f!> = <?t?>
-]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', false)
-
-TEST [[
-local <!f!>
-local <?t?> = <!f!>
-]]
-
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', true)
-TEST [[
-local <!t!>
-<!t!>.<!f!> = <?t?>
-]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', false)
-
TEST [[
_G.<?xxx?> = 1
@@ -176,12 +138,6 @@ print(<!xxx!>)
]]
TEST [[
----@class <!Class!>
----@type <?Class?>
----@type <!Class!>
-]]
-
-TEST [[
---@class <?Class?>
---@type <!Class!>
---@type <!Class!>
@@ -191,19 +147,19 @@ TEST [[
---@class Class
local <?t?>
---@type Class
-local <!x!>
+local x
]]
TEST [[
---@class Class
-local <!t!>
+local t
---@type Class
local <?x?>
]]
-- BUG
TEST [[
----@return <?xxx?>
+---@return <!<?xxx?>!>
function f() end
]]
@@ -215,16 +171,16 @@ TEST [[
local <?t?>
]]
-TEST [[
----@class A
-local a
-
----@type A
-local b
-
----@type A
-local c
-
-b.<?x?> = 1
-c.<!x!> = 1
-]]
+--TEST [[
+-----@class A
+--local a
+--
+-----@type A
+--local b
+--
+-----@type A
+--local c
+--
+--b.<?x?> = 1
+--c.<!x!> = 1
+--]]