LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.12k stars 289 forks source link

The type is not determined after the bitwise operation #2712

Open RomanSpector opened 2 weeks ago

RomanSpector commented 2 weeks ago

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

image

Actual Behaviour

image

Reproduction steps

    local PACK_YZ = 1 << 20; -- okey
    local PACK_X = PACK_YZ << 1;  --- not okey

Additional Notes

No response

Log File

No response