Undo an accidental change in previous commit
@@ -279,7 +279,7 @@ checkstat = util.make_visitor({
end,
["Ast.StatReturn"] = function(node, st, errors)
- local ftype = st:find_symbol(".function")._type
+ local ftype = st:find_symbol("$function")._type
assert(#ftype.rettypes == 1)
local tret = ftype.rettypes[1]
checkexp(node.exp, st, errors, tret)
@@ -736,7 +736,7 @@ checkexp = util.make_visitor({
local function checkfunc(node, st, errors)
local l, _ = util.get_line_number(errors.subject, node._pos)
node._lin = l
- st:add_symbol(".function", node) -- for return type
+ st:add_symbol("$function", node) -- for return type
local ptypes = node._type.params
local pnames = {}
for i, param in ipairs(node.params) do
