From 76c7098956305de4ca0be6f260c10ab8f8c6fa04 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, 26 Apr 2023 14:11:14 +0800 Subject: lock parsing resume fix #2056 --- test/type_inference/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 51de9cd5..12a8e2ab 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -4268,3 +4268,13 @@ local b = '2'; local = a .. b; ]] + +TEST 'number|{ [1]: string }' [[ +---@alias Some +---| { [1]: string } +---| number + +local x ---@type Some + +print() +]] -- cgit v1.2.3