383286ff53
It's a smeary copy of the checker's type parameter, so I feel bad about duplicating that code. Not sure what the solution is, architecturally.
11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noImplicitAny: true
|
|
//// function wrap( [| s |] ) {
|
|
//// return s.length + s.indexOf('hi')
|
|
//// }
|
|
|
|
// https://github.com/Microsoft/TypeScript/issues/29330
|
|
verify.rangeAfterCodeFix("s: string | string[]");
|
|
|