From 9a1307a9147ef8956db9cdc37e42f057d24c3db1 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, 20 Apr 2021 16:05:16 +0800 Subject: backward tablefield --- test/basic/linker.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'test/basic') diff --git a/test/basic/linker.txt b/test/basic/linker.txt index 49f27234..76b1980c 100644 --- a/test/basic/linker.txt +++ b/test/basic/linker.txt @@ -46,3 +46,29 @@ expect: 'l|0|y' + '|z' forward: 'l|1'+ '|z' -> 'l|1|z' -> field z backward: nil last: 'l|0' + '|y|z' + + +```lua +a = { + b = { + = 1, + } +} + +print(a.b.) +``` + +expect: 't|3|c' +forward: nil +backward: nil +last: 't|3' + '|c' + +expect: 't|3' + '|c' +forward: nil +backward: 't|2|b' + '|c' +last: nil + +expect: 't|2|b|c' +forward: nil +backward: 't|2|b' + '|c' +last: nil -- cgit v1.2.3