TypeScript/tests/baselines/reference/numericIndexerConstraint2.js

18 lines
317 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [numericIndexerConstraint2.ts]
class Foo { foo() { } }
var x: { [index: string]: Foo; };
var a: { one: number; };
x = a;
//// [numericIndexerConstraint2.js]
var Foo = (function () {
function Foo() {
}
Foo.prototype.foo = function () {
};
return Foo;
})();
var x;
var a;
x = a;