sourcemod/sourcepawn/compiler/tests/ok-newdecl-const.sp

13 lines
242 B
SourcePawn

// both fine
const MY_CONST = 1;
const Float:FLOAT_CONST = 1.0;
// error 020: invalid symbol name ""
const int MY_INT_COST = 1;
// error 001: expected token: "=", but found "-identifier-"
const float MY_FLOAT_CONST = 1.0;
public main()
{
}