EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.72k stars 285 forks source link

Issue with types #565

Open Paneedah opened 8 months ago

Paneedah commented 8 months ago

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 commented 8 months ago

please use emmylua doc image