IntelliJ-EmmyLua icon indicating copy to clipboard operation
IntelliJ-EmmyLua copied to clipboard

Issue with types

Open Paneedah opened this issue 2 years ago • 1 comments

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.

Paneedah avatar Oct 19 '23 20:10 Paneedah

please use emmylua doc image

CppCXY avatar Oct 31 '23 02:10 CppCXY