/** @type {number} */ var x; x = 0; // OK x = false; // Error: boolean is not assignable to number