Module:Sandbox/Alexiscoutinho: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 17:
local frame = mw.getCurrentFrame()
 
require('Module:Lua classset')
local C1fs = class(frozenset{1 ,3, 'Baset', {pairs}
local ms = wrapper()set{fs}
a = function () return 'a' end,
s.add(true)
b = function () return 'base' end
s.add(false)
})
local C2 = class(C1, {
b = function () return 'not base' end
})
local obj1, obj2 = C1{}, C2{}
 
--[[local conc = ''
Line 32 ⟶ 28:
end]]
 
return tostring(fs) .. ' ' .. tostring(s)
local warn = require('Module:Warning')
local function wrapper()
local function f()
warn('my warning', 4)
error('my error', 4)
end
local _, msg = pcall(f)
return msg
end
 
local m = wrapper()
return m
end