**TypeScript Version:** 2.3.4 **Code** ```ts class Foo {} Foo.bar = 1; // expected error, but got none const Foo2 = () => {}; Foo2.bar = 1; // error function FooBar() {} FooBar.bar = 1; // expected error, but got none ``` This errors is TS files, but not in JS files where `checkJs` is enabled.