10 lines
253 B
Plaintext
10 lines
253 B
Plaintext
|
=== tests/cases/compiler/contextualTyping14.ts ===
|
||
|
class foo { public bar:(a:number)=>number = function(a){return a}; }
|
||
|
>foo : foo
|
||
|
>bar : (a: number) => number
|
||
|
>a : number
|
||
|
>function(a){return a} : (a: number) => number
|
||
|
>a : number
|
||
|
>a : number
|
||
|
|