23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

puts a statically unknown set of identifiers in scope in front of those that are statically known, it is not<br />

possible to meaningfully assign a static type to any identifier.<br />

5.9 Switch Statements<br />

In a 'switch' statement, each 'case' expression must be of a type that is assignable to or from (section<br />

3.10.4) the type of the 'switch' expression.<br />

5.10 Throw Statements<br />

The expression specified in a 'throw' statement can be of any type.<br />

5.11 Try Statements<br />

The variable introduced by a 'catch' clause of a 'try' statement is always of type Any. It is not possible to<br />

include a type annotation in a 'catch' clause.<br />

94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!