TypeScript/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types
2015-04-13 14:29:37 -07:00

28 lines
1.2 KiB
Plaintext

=== tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts ===
// Ensure only checking for const declarations shadowed by vars
class Rule {
>Rule : Rule, Symbol(Rule, Decl(constDeclarationShadowedByVarDeclaration3.ts, 0, 0))
public regex: RegExp = new RegExp('');
>regex : RegExp, Symbol(regex, Decl(constDeclarationShadowedByVarDeclaration3.ts, 1, 12))
>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11))
>new RegExp('') : RegExp
>RegExp : RegExpConstructor, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11))
>'' : string
public name: string = '';
>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42))
>'' : string
constructor(name: string) {
>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 5, 16))
this.name = name;
>this.name = name : string
>this.name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42))
>this : Rule, Symbol(Rule, Decl(constDeclarationShadowedByVarDeclaration3.ts, 0, 0))
>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42))
>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 5, 16))
}
}