2017-08-29 19:38:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
//// var f = <[|function(number?): number|]>(x => x);
|
|
|
|
|
|
|
|
// note: without --strict, number? --> number, not number | null
|
2017-10-10 20:28:05 +02:00
|
|
|
verify.codeFix({
|
2017-12-02 01:38:59 +01:00
|
|
|
description: "Change 'function(number?): number' to '(arg0: number) => number'",
|
2017-10-10 20:28:05 +02:00
|
|
|
errorCode: 8020,
|
|
|
|
index: 0,
|
|
|
|
newRangeContent: "(arg0: number) => number",
|
|
|
|
});
|