I am using typescript 1.6 with es6 modules syntax.
My files are:
test.ts:
module App {
export class SomeClass {
getNam
In addition to Tim's answer, this issue occurred for me when I was splitting up a refactoring a file, splitting it up into their own files.
VSCode, for some reason, indented parts of my [class] code, which caused this issue. This was hard to notice at first, but after I realised the code was indented, I formatted the code and the issue disappeared.
for example, everything after the first line of the Class definition was auto-indented during the paste.
export class MyClass extends Something {
public blah: string = null;
constructor() { ... }
}