Skip to content

Global "typedefs" for function break tealdoc #5

@FilippoLeon

Description

@FilippoLeon

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions