Skip to content

update #514

New issue

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

Merged
merged 39 commits into from
Jun 13, 2025
Merged

update #514

merged 39 commits into from
Jun 13, 2025

Conversation

xuhuanzy
Copy link
Member

No description provided.

xuhuanzy added 21 commits June 9, 2025 16:35
将`signature`添加为默认的`__call`调用目标, 但如果已经显式为`class`声明了`---@overload`则不会添加.

配置以下选项:
runtime.class_default_call.function_name = "__init"
untime.class_default_call.force_non_colon = true
runtime.class_default_call.force_return_self

```lua
        ---@Class MyClass
        local M = {}

        function M:__init(a)
        end

        A = M() -- `A` is `MyClass`
```
set `strict.docIntegerMatchInt = true`

```lua
                ---@alias IdAlias
                ---| 311000001
                ---| 311000002

                ---@param id IdAlias
                local function f(id)
                end

                ---@type integer
                local a
                f(a)  -- allow
```
@xuhuanzy xuhuanzy linked an issue Jun 10, 2025 that may be closed by this pull request
@xuhuanzy xuhuanzy linked an issue Jun 10, 2025 that may be closed by this pull request
@xuhuanzy xuhuanzy mentioned this pull request Jun 10, 2025
@CppCXY CppCXY merged commit 94345fd into EmmyLuaLs:main Jun 13, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants