Skip to content

returning nil function call counts causes return count error #567

Open
@lewis6991

Description

@lewis6991

Image

local function fnil()
  return
end

local f --- @type fun(c: fun())
f(function()
  return fnil()
end)

fnil doesn't return anything, so I don't think this message is correct.

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