-
Notifications
You must be signed in to change notification settings - Fork 505
Open
Labels
bugSomething isn't workingSomething isn't workingnew solverThis issue is specific to the new solver.This issue is specific to the new solver.
Description
Minimum Reproducible Example
local a = {
"A",
"B"
} :: {"A" | "B"}
table.find(a, "A")To me, this feels like it should work but I instead get the following error:
TypeError: No valid instantiation could be inferred for generic type parameter V. It was expected to be at least:
"A" | "B" | string
and at most:
"A" | "B"
but these types are not compatible with one another.Luau[1057](https://luau-lang.org/typecheck)```
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnew solverThis issue is specific to the new solver.This issue is specific to the new solver.