fix(entities): instance new object properly
This commit is contained in:
parent
bebe4a6901
commit
82d0377c72
|
@ -19,8 +19,8 @@ local record Function_Info
|
|||
end
|
||||
|
||||
local __Function_Info: metatable<Function_Info> = {
|
||||
__call = function(self: Function_Info): Function_Info
|
||||
return self
|
||||
__call = function(_self: Function_Info): Function_Info
|
||||
return {}
|
||||
end,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ local record Module_Doc
|
|||
end
|
||||
|
||||
local __Module_Doc: metatable<Module_Doc> = {
|
||||
__call = function(self: Module_Doc): Module_Doc
|
||||
return self
|
||||
__call = function(_: Module_Doc): Module_Doc
|
||||
return {}
|
||||
end,
|
||||
}
|
||||
|
||||
|
|
|
@ -8,10 +8,11 @@ local record Module_Info
|
|||
end
|
||||
|
||||
local __Module_Info: metatable<Module_Info> = {
|
||||
__call = function(self: Module_Info, name: string, uri: string): Module_Info
|
||||
self.name = name
|
||||
self.uri = uri
|
||||
return self
|
||||
__call = function(_self: Module_Info, name: string, uri: string): Module_Info
|
||||
return {
|
||||
name = name,
|
||||
uri = uri,
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue