I managed to break tealdoc with the following snippet:
global type Fun = function() : integer
global record T
fun : Fun
end
local t : T
t.fun = function() : integer
end
Assert at line 207 of teal.lua in parser.
I think "t.fun" is "redeclared" as a "function" while previously it was a "variable"