From f8e2955268708728a1f83743d0b2000d2e089539 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, 23 Feb 2022 17:55:44 +0800 Subject: cleanup --- test/definition/field.lua | 23 +++++++++++++++++++++++ test/definition/init.lua | 1 + 2 files changed, 24 insertions(+) create mode 100644 test/definition/field.lua (limited to 'test') diff --git a/test/definition/field.lua b/test/definition/field.lua new file mode 100644 index 00000000..5b5b67f9 --- /dev/null +++ b/test/definition/field.lua @@ -0,0 +1,23 @@ +TEST [[ +X. = 1 + +local t = X + +print(t.) +]] + +TEST [[ +X.x. = 1 + +local t = X.x + +print(t.) +]] + +TEST [[ +X.x. = 1 + +local t = X + +print(t.x.) +]] diff --git a/test/definition/init.lua b/test/definition/init.lua index fc2903c1..08b97442 100644 --- a/test/definition/init.lua +++ b/test/definition/init.lua @@ -44,6 +44,7 @@ end require 'definition.local' require 'definition.set' +require 'definition.field' require 'definition.arg' require 'definition.function' require 'definition.table' -- cgit v1.2.3