TypeScript/tests/baselines/reference/typeofThisWithImplicitThis.js
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

11 lines
170 B
TypeScript

//// [typeofThisWithImplicitThis.ts]
function Test1() {
let x: typeof this.no = 1
}
//// [typeofThisWithImplicitThis.js]
function Test1() {
var x = 1;
}