Skip to content
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

@param声明多个类型时,string类型无法正确识别 #198

Closed
slaier opened this issue Oct 19, 2018 · 0 comments
Closed

@param声明多个类型时,string类型无法正确识别 #198

slaier opened this issue Oct 19, 2018 · 0 comments
Assignees
Labels

Comments

@slaier
Copy link

slaier commented Oct 19, 2018

Environment(环境)

name version
IDEA version IU-182.4129.33
EmmyLua version 1.2.5, 1.2.6
OS Windows 10

What are the steps to reproduce this issue?(重现步骤?)

  1. 只有string
---@param param string
function f1(param) end
f1("str")
  1. string和number
---@param param string|number
function f2(param) end
f2(1)
f2("str")
  1. number和table
---@param param number|table
function f3(param) end
f3(2)
f3({3})

What happens?(出现什么问题?)

第二种情况出现了type mismatch警告

temp

What were you expecting to happen?(期望?)

类型匹配

Any logs, error output, etc?(有没有什么log, error输出?)

none

Any other comments?(其它说明)

none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants