IntelliJ-Luanalysis
IntelliJ-Luanalysis copied to clipboard
Wrong return type for os.execute
Environment
Luanalysis version: 1.4.0 Language level: 5.0, 5.1, 5.2, 5.3, 5.4
What are the steps to reproduce this issue?
-
local ok, kind, info = os.execute("echo")
What happens?
- The return variables
kind
andinfo
are marked with 'Too many assignees, will be assigned nil.'.
What were you expecting to happen?
- The declared return type for
os.execute
matches the textual description in the std documentation, which suggests something liketrue | nil, string, number
, or, when it is called without a command,bool
.