26 lines
538 B
Plaintext
26 lines
538 B
Plaintext
=== tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts ===
|
|
// Ensure only checking for const declarations shadowed by vars
|
|
class Rule {
|
|
>Rule : Rule
|
|
|
|
public regex: RegExp = new RegExp('');
|
|
>regex : RegExp
|
|
>RegExp : RegExp
|
|
>new RegExp('') : RegExp
|
|
>RegExp : RegExpConstructor
|
|
|
|
public name: string = '';
|
|
>name : string
|
|
|
|
constructor(name: string) {
|
|
>name : string
|
|
|
|
this.name = name;
|
|
>this.name = name : string
|
|
>this.name : string
|
|
>this : Rule
|
|
>name : string
|
|
>name : string
|
|
}
|
|
}
|