2014-10-24 19:30:40 +02:00
|
|
|
=== tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts ===
|
|
|
|
// Ensure only checking for const declarations shadowed by vars
|
|
|
|
class Rule {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Rule : Rule
|
2014-10-24 19:30:40 +02:00
|
|
|
|
|
|
|
public regex: RegExp = new RegExp('');
|
2015-04-16 01:44:20 +02:00
|
|
|
>regex : RegExp
|
|
|
|
>RegExp : RegExp
|
2014-10-24 19:30:40 +02:00
|
|
|
>new RegExp('') : RegExp
|
2015-04-16 01:44:20 +02:00
|
|
|
>RegExp : RegExpConstructor
|
2015-04-13 21:36:11 +02:00
|
|
|
>'' : string
|
2014-10-24 19:30:40 +02:00
|
|
|
|
|
|
|
public name: string = '';
|
2015-04-16 01:44:20 +02:00
|
|
|
>name : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>'' : string
|
2014-10-24 19:30:40 +02:00
|
|
|
|
|
|
|
constructor(name: string) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>name : string
|
2014-10-24 19:30:40 +02:00
|
|
|
|
|
|
|
this.name = name;
|
|
|
|
>this.name = name : string
|
2015-04-16 01:44:20 +02:00
|
|
|
>this.name : string
|
|
|
|
>this : Rule
|
|
|
|
>name : string
|
|
|
|
>name : string
|
2014-10-24 19:30:40 +02:00
|
|
|
}
|
|
|
|
}
|