declareclassC{// TypeScript correctly reports an error here.foo: typeofthis.foo;// TypeScript does not report an error here.getbar(): typeofthis.bar;}Expected
An error on both foo and bar.
'foo' is referenced directly or indirectly in its own type annotation.
'bar' is referenced directly or indirectly in its own type annotation.
Actual
Just an error on bar.
'bar' is referenced directly or indirectly in its own type annotation.
Expected
An error on both
fooandbar.Actual
Just an error on
bar.