TypeScript/tests/cases/fourslash/quickInfoDisplayPartsIife.ts
Nathan Shively-Sanders 01a9e4f9be isOptionalParameter says unused IIFE arguments are optional
Related to adding undefined, though not strictly the same, this change
adds '?' to unused IIFE parameters in quick info.
2017-01-26 12:01:27 -08:00

6 lines
207 B
TypeScript

/// <reference path='fourslash.ts'/>
// @strictNullChecks: true
////var iife = (function foo/*1*/(x, y) { return x })(12);
verify.quickInfoAt('1', '(local function) foo(x: number, y?: undefined): number');