mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Adds ThisType to SyntaxKind, to distinguish between a 'this' expression and a 'this' type. Needed for transforms
This commit is contained in:
@@ -92,7 +92,6 @@ class C5 {
|
||||
let f1 = (x: this): this => this;
|
||||
>f1 : Symbol(f1, Decl(thisTypeInClasses.ts, 34, 11))
|
||||
>x : Symbol(x, Decl(thisTypeInClasses.ts, 34, 18))
|
||||
>this : Symbol(C5, Decl(thisTypeInClasses.ts, 30, 1))
|
||||
>this : Symbol(C5, Decl(thisTypeInClasses.ts, 30, 1))
|
||||
|
||||
let f2 = (x: this) => this;
|
||||
|
||||
@@ -93,7 +93,6 @@ class C5 {
|
||||
>f1 : (x: this) => this
|
||||
>(x: this): this => this : (x: this) => this
|
||||
>x : this
|
||||
>this : this
|
||||
>this : this
|
||||
|
||||
let f2 = (x: this) => this;
|
||||
|
||||
Reference in New Issue
Block a user