#pragma strict
Emit --!strict at the top of the Luau file.
Syntax
Section titled “Syntax”#pragma strictParameters
Section titled “Parameters”None.
Return value
Section titled “Return value”None.
Luau emit
Section titled “Luau emit”--!strict
Description
Section titled “Description”Default is not strict unless config "strict": true. #pragma nostrict emits --!nonstrict.
Example
Section titled “Example”#pragma strictvoid init() {}Emits:
--!strictSee also
Section titled “See also”pragma-nstrict · pragma-native · pragma-optimize · pragma-once