905a1fea39
* Corrected parsing for decorators on 'this' parameters * Moved checking to parser and added a specific test * Remove unrelated checker.ts blank line * Missed some baseeline updates...
27 lines
502 B
Plaintext
27 lines
502 B
Plaintext
=== tests/cases/conformance/decorators/invalid/decoratorOnFunctionParameter.ts ===
|
|
declare const dec: any;
|
|
>dec : any
|
|
|
|
class C { n = true; }
|
|
>C : C
|
|
>n : boolean
|
|
>true : true
|
|
|
|
function direct(@dec this: C) { return this.n; }
|
|
>direct : (this: C) => boolean
|
|
>dec : any
|
|
>this : C
|
|
>this.n : boolean
|
|
>this : C
|
|
>n : boolean
|
|
|
|
function called(@dec() this: C) { return this.n; }
|
|
>called : (this: C) => boolean
|
|
>dec() : any
|
|
>dec : any
|
|
>this : C
|
|
>this.n : boolean
|
|
>this : C
|
|
>n : boolean
|
|
|