Skip to content

一些3.4.0新增功能的语法检查异常 #1260

Open
@Whimsyduke

Description

@Whimsyduke

image
image
单独写lua没能复现
另外有没有强制修改类型的配置方式,比如
`---@Class A
local a = {}
---@Class B:A

---@type string|number
local c = 1

---comment
---@return A
---@return string|number
local function func1()
return a, c
end

---comment
---@return B
---@return number
local function func2()
local ta, tb = func1()
return ta, tb
end`
在这种情况下我怎么去配置使ta、ta符合返回值类型?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Info NeededMore information is requiredbugSomething isn't workingenhancementNew feature or requestfeat/type checkRelated to the type checking feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions