mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 17:59:30 +00:00
Uploaded the idea file
instead of keeping for myself
This commit is contained in:
parent
97454746b8
commit
5194cfb115
2 changed files with 163 additions and 0 deletions
|
|
@ -239,6 +239,18 @@ function a:hey()
|
|||
end
|
||||
return a:hey()
|
||||
]], "Hoi")
|
||||
test("@name method call", [[
|
||||
local a = {
|
||||
foo = "Hoi",
|
||||
bar = function(self)
|
||||
return self.foo
|
||||
end
|
||||
}
|
||||
function a:hey()
|
||||
return @bar()
|
||||
end
|
||||
return a:hey()
|
||||
]], "Hoi")
|
||||
test("@[expt] indexation", [[
|
||||
local a = {
|
||||
foo = "Hoi"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue