diff --git a/src/noAccessMissingMemberRule.ts b/src/noAccessMissingMemberRule.ts index 1b99281b1..4f22d40bc 100644 --- a/src/noAccessMissingMemberRule.ts +++ b/src/noAccessMissingMemberRule.ts @@ -133,7 +133,6 @@ export class Rule extends Lint.Rules.AbstractRule { typescriptOnly: true, }; - static FAILURE: string = 'The %s "%s" that you\'re trying to access does not exist in the class declaration.'; public apply(sourceFile:ts.SourceFile): Lint.RuleFailure[] { diff --git a/test/noAccessMissingMemberRule.spec.ts b/test/noAccessMissingMemberRule.spec.ts index c570c49d9..e385826f2 100644 --- a/test/noAccessMissingMemberRule.spec.ts +++ b/test/noAccessMissingMemberRule.spec.ts @@ -562,6 +562,19 @@ describe('no-access-missing-member', () => { assertSuccess('no-access-missing-member', source); }); + it('should work with "as" syntax', () => { + let source = ` + @Component({ + template: \` + {{ emp }} + \` + }) + class Test { + employee$; + }`; + assertSuccess('no-access-missing-member', source); + }); + it('should work with local template variables', () => { let source = `