We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
---@class Class ---@field f fun(s: string): integer ---@param f fun(x: string): integer local function handle(f) return f("string") end ----- ---@param i number ---@return boolean local function is_positive(i) return i >= 0 end handle(is_positive) -- expect `param-type-mismatch` ---@type Class local _ = { f = is_positive } -- expect `assign-type-mismatch`
Expected warning: Type fun(i: number):boolean cannot match fun(x: string):integer
fun(i: number):boolean
fun(x: string):integer
I didn't find duplicates, although I expected them maybe I didn't search well
The text was updated successfully, but these errors were encountered:
similar issue: #2702
Sorry, something went wrong.
No branches or pull requests
Expected warning:
Type
fun(i: number):boolean
cannot matchfun(x: string):integer
I didn't find duplicates, although I expected them
maybe I didn't search well
The text was updated successfully, but these errors were encountered: