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