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

a AND b OR c #1299

Closed
tweyseo opened this issue Jul 8, 2022 · 1 comment
Closed

a AND b OR c #1299

tweyseo opened this issue Jul 8, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@tweyseo
Copy link
Contributor

tweyseo commented Jul 8, 2022

local a = "str"
a = isEmptyStr("str") and "123" or "456"
print(a)

会产生
“已显式定义变量的类型为 string ,不能再将其类型转换为 string|true。”的警告。

@sumneko
Copy link
Collaborator

sumneko commented Jul 8, 2022

Same as #1294

@sumneko sumneko closed this as completed Jul 8, 2022
@sumneko sumneko added the duplicate This issue or pull request already exists label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants