Re[2]: [ANN] TypeScript - типизированный JavaScript от MS
От:
Аноним
Дата:
02.10.12 14:13
Оценка:
Спецификация:
The Any type is used to represent any JavaScript value. A value of the Any type supports the same operations
as a value in JavaScript and no static type checking is performed for operations on Any values.
Здравствуйте, Jack128, Вы писали:
J>Здравствуйте, Gollum, Вы писали:
J>[js] J>function sqr(n: number) { return n * n } J>var x : any = ... J>sqr(x) J>[/js] J>проходит без ошибок. нужна хотя бы прагма какая нить, которая бы пребывала ЯВНОГО приведения any к конкретному типу.