Skip to content

Table contents are not checked for type intersections #574

Open
@taminomara

Description

@taminomara

I gave up on trying to contribute anything around type intersections, so I'll just report this:

--- @param x { y: integer } & { z: string }
function foo(x) end
foo({y = "", z = ""}) -- should be an error: `y` is not an integer

Metadata

Metadata

Assignees

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