mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Handle this in isEntityNameVisible (#49521)
This commit is contained in:
6
tests/cases/compiler/declarationEmitTypeofThisInClass.ts
Normal file
6
tests/cases/compiler/declarationEmitTypeofThisInClass.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// @declaration: true
|
||||
// @strict: true
|
||||
class Foo {
|
||||
public foo!: string
|
||||
public bar!: typeof this.foo //Public property 'bar' of exported class has or is using private name 'this'.(4031)
|
||||
}
|
||||
Reference in New Issue
Block a user