type annotation
A colon and a type written after a name, like : bool.
A type annotation states a binding's type explicitly; the compiler checks the value against it.
Examples
let game_over: bool = false;states the type;let game_over: bool = 0;fails with E0308, expectedbool, found integer.
See also