mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
626 B
TypeScript
24 lines
626 B
TypeScript
//// [tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts] ////
|
|
|
|
//// [constDeclarationShadowedByVarDeclaration3.ts]
|
|
// Ensure only checking for const declarations shadowed by vars
|
|
class Rule {
|
|
public regex: RegExp = new RegExp('');
|
|
public name: string = '';
|
|
|
|
constructor(name: string) {
|
|
this.name = name;
|
|
}
|
|
}
|
|
|
|
//// [constDeclarationShadowedByVarDeclaration3.js]
|
|
"use strict";
|
|
// Ensure only checking for const declarations shadowed by vars
|
|
class Rule {
|
|
constructor(name) {
|
|
this.regex = new RegExp('');
|
|
this.name = '';
|
|
this.name = name;
|
|
}
|
|
}
|