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