Can't infer the return type of map
#1153
Labels
enhancement
New feature or request
feat/LuaCats Annotations
Related to Lua Language Server Annotations (LuaCats)
Milestone
Describe the bug
I'm writing a map function, but type inference doesn't work for it. Specifically, when you have
map(list, fn)
wherefn
isfun(item: A): B
, the type inference cannot figure out whatB
is in the return type.To Reproduce
Here's a snippet:
I'm using 3.2.3 in neovim, if that is relevant.
The text was updated successfully, but these errors were encountered: