TypeScript/tests/baselines/reference/typeofThisWithImplicitThis.types
Zzzen 8dbb2cd5fb
allow this in typeQuery (#43898)
* allow `this` in typeQuery

* add tests

* get this type as expression

* handle nested nodes

* update baselines
2021-06-17 07:52:20 -07:00

13 lines
234 B
Plaintext

=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofThisWithImplicitThis.ts ===
function Test1() {
>Test1 : () => void
let x: typeof this.no = 1
>x : any
>this.no : any
>this : any
>no : any
>1 : 1
}