From 813da76cc7f899d7a0eca5afb0f224cd64eaaab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 12 May 2021 17:08:45 +0800 Subject: update infer --- test/type_inference/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index df8f4fe8..0a041433 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -153,14 +153,26 @@ _VERSION = 'Lua 5.4' ]] TEST 'function' [[ +---@class stringlib +local string + +string.sub = function () end + return ('x'). ]] TEST 'function' [[ +---@class stringlib +local string + +string.sub = function () end + = ('x').sub ]] TEST 'function' [[ +_VERSION = 'Lua 5.4' + = _VERSION.sub ]] -- cgit v1.2.3