What does @checked decorator above functions do?

Hello, I’m curious what @checked decorator means in Luau? I knew about decorators like @native/@deprecated, but I didn’t know there was another one. I found out about it because someone forked my open-source module and written it above every public function; I’ve tried to google it, but found no results. Neither of Luau Language Server nor Roblox Studio throws an error when typing it, so it must actually exist. If someone could tell me what it does, I’d really appreciate it. Thanks.

2 Likes

There’s an explanation of it in this RFC: New non-strict mode | Luau RFCs

4 Likes

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