10 lines
184 B
JavaScript
10 lines
184 B
JavaScript
|
//// [overloadOnConstAsTypeAnnotation.ts]
|
||
|
var f: (x: 'hi') => number = ('hi') => { return 1; };
|
||
|
|
||
|
//// [overloadOnConstAsTypeAnnotation.js]
|
||
|
var f = ('hi');
|
||
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
;
|