From d2328cf547e6bac9c87cf9bf61709380fe950496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 22 Oct 2020 17:36:25 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/definition/table.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test-beta') diff --git a/test-beta/definition/table.lua b/test-beta/definition/table.lua index 0b90fe00..ba2d2aa3 100644 --- a/test-beta/definition/table.lua +++ b/test-beta/definition/table.lua @@ -133,3 +133,27 @@ local y = { } t.() ]] + +TEST [[ +local function f() + local t = {} + t.field1 = { + = 1, + y = 1, + z = 1, + } + t.field2 = { + x = 1, + y = 1, + z = 1, + } + t.field3 = { + x = 1, + y = 1, + z = 1, + } + return t +end +local t = f() +t.field1. +]] -- cgit v1.2.3