2014-07-13 01:04:16 +02:00
|
|
|
//// [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;
|
2014-08-16 00:49:09 +02:00
|
|
|
// Foo.b won't bind.
|
2014-07-13 01:04:16 +02:00
|
|
|
baz.concat("y");
|
2014-12-03 01:09:41 +01:00
|
|
|
// So we don't want an error on 'concat'.
|