TypeScript-TmLanguage/tests/cases/issue909.ts

8 строки
281 B
TypeScript

class TestClass {
veryVeryVeryVeryVeryVeryVeryVeryLongName = true;
veryVeryVeryVeryLongName: string;
test = () =>
!this.veryVeryVeryVeryVeryVeryVeryVeryLongName ||
(!!this.veryVeryVeryVeryLongName && this.veryVeryVeryVeryLongName === 'veryVeryVeryVeryLongString');
}