Kampfkarren / selene

A blazing-fast modern Lua linter written in Rust

Home Page:https://kampfkarren.github.io/selene/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive when using methods on constant userdata values in the standard library

ambergamefam opened this issue · comments

The following line of code emits a false positive "incorrect standard library use" warning:

local zAxis = Vector3.xAxis:Cross(Vector3.yAxis)
image

I was able to work around this warning by wrapping Vector3.xAxis in parentheses

    local facingVector = (Vector3.xAxis):Cross(floorCast.Normal)

Dupe of #348.