What is the type-check "never"?

So I was testing out some type-checks with some variables when I came upon this:

local var: never

I’m not exactly certain about the type-check never so I’m just asking what exactly is never and is it that useful in scripting?

From Type checking - Luau

image

I can’t think of any use cases for never

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.