New script analysis beta shows wrong linter message, "Type mismatch number and string"

When using the new Lua script analysis beta, the Script Analysis linter warns of “Type mismatch number and string” on A.B(A) as long as an array value can be seen in A, when the message should be the usual “Key ‘B’ not found in table A”.

local A = {
	"Value"
}

A.B(A)
3 Likes

This still seems to be occurring, I hope this can be fixed.

here is a snippet of my code

local Drive = {}
..
Drive = nil

the error I am getting through the script analysis is this
“Type mismatch Drive and nil”

Is your script in strict mode by any chance?

1 Like

As far as I’m aware, I do not believe I have made the script strict, I’ll check again when I reopen studio.