TypeScript/tests/cases/fourslash/editLambdaArgToTypeParameter1.ts
2014-07-29 12:17:44 -07:00

17 lines
332 B
TypeScript

/// <reference path='fourslash.ts'/>
////class C<T> {
//// foo(x: T) {
//// return (a: number/*1*/) => x;
//// }
////}
/////*2*/
goTo.marker('1');
edit.backspace(6);
edit.insert('T');
verify.numberOfErrorsInCurrentFile(0);
goTo.marker('2');
edit.insertLine('');
verify.numberOfErrorsInCurrentFile(0);