27 lines
566 B
Text
27 lines
566 B
Text
=== 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
|
|
>'' : string
|
|
|
|
public name: string = '';
|
|
>name : string
|
|
>'' : string
|
|
|
|
constructor(name: string) {
|
|
>name : string
|
|
|
|
this.name = name;
|
|
>this.name = name : string
|
|
>this.name : string
|
|
>this : Rule
|
|
>name : string
|
|
>name : string
|
|
}
|
|
}
|