I have just installed TypeScript, having come from a Pascal / Java background and expected the following snippet to fail to be compiled for two reasons (line 2 - message used be