Adam Tegen
Adam Tegen

Reputation: 25887

typescript (tsc) error on Array<>

when I run tsc on the command line (version 1.4.1) on the following file I get an error: test.ts (1,13): Expected ';'

var x: Array<number>;
x = [2];

Any ideas what might be going on?

Upvotes: 0

Views: 243

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 220904

Check your path (where tsc). This is the error issued by an old pre-generics version of TypeScript (0.8 maybe?).

Upvotes: 1

Related Questions