From 0c5c502806659c11b3edde1ceff6fbb5058aaf0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 31 Jan 2023 15:04:41 +0800 Subject: fix #1857 --- test/type_inference/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 4fbefd48..5a9e1796 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -4199,3 +4199,12 @@ x.y = nil print() ]] + +TEST 'function' [[ +function X() + () +end + +function Y() +end +]] -- cgit v1.2.3