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

Issue with types #565

Open
Paneedah opened this issue Oct 19, 2023 · 1 comment
Open

Issue with types #565

Paneedah opened this issue Oct 19, 2023 · 1 comment
Labels

Comments

@Paneedah
Copy link

Environment

name version
IDEA version 2023.2.3
EmmyLua version 1.4.8-IDEA231
OS Windows 11

What are the steps to reproduce this issue?

  1. Add a return with a boolean value to a function
  2. Create another function that returns the opposite
  3. It should return any instead of boolean.

What happens?

Invert (opposite) of type boolean (use of not <>) returns any instead of boolean.

image
image
image

What were you expecting to happen?

It should also return a boolean type value.

@CppCXY
Copy link
Member

CppCXY commented Oct 31, 2023

please use emmylua doc
image

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