21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
//// [errorSupression1.ts]
|
|
|
|
class Foo { static bar() { return "x"; } }
|
|
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
|
|
// So we don't want an error on 'concat'.
|
|
|
|
//// [errorSupression1.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
}
|
|
Foo.bar = function () { return "x"; };
|
|
return Foo;
|
|
}());
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
// So we don't want an error on 'concat'.
|