diff options
Diffstat (limited to 'test-beta/definition/bug.lua')
-rw-r--r-- | test-beta/definition/bug.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-beta/definition/bug.lua b/test-beta/definition/bug.lua index 9bd4b12f..0550b3b9 100644 --- a/test-beta/definition/bug.lua +++ b/test-beta/definition/bug.lua @@ -114,3 +114,18 @@ end local t = init() t:<?add?>() ]] + +TEST [[ +local mt = {} +mt.__index = mt + +function mt:<!add!>(a, b) +end + +local function init() + return setmetatable({}, mt) +end + +local t = init() +t:<?add?>() +]] |