2021-10-29 16:25:12 -04:00
|
|
|
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
print('testing function calls through API')
|
|
|
|
|
|
|
|
function add(a, b)
|
2021-12-02 18:20:08 -05:00
|
|
|
return a + b
|
|
|
|
end
|
|
|
|
|
|
|
|
local m = { __eq = function(a, b) return a.a == b.a end }
|
|
|
|
|
|
|
|
function create_with_tm(x)
|
|
|
|
return setmetatable({ a = x }, m)
|
2021-10-29 16:25:12 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
return('OK')
|