Handle TODO's

This commit is contained in:
Arthur Ozga
2017-03-17 11:54:51 -07:00
parent 4fa32a29ce
commit ac7fc8fe75
6 changed files with 102 additions and 50 deletions

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
//// interface I<X> {
//// x: keyof X;
//// }
//// class C<Y> implements I<Y> {[| |]}
verify.rangeAfterCodeFix(`
x: keyof Y;
`);

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
//// interface I<X> {
//// x: { readonly [K in keyof X]: X[K] };
//// }
//// class C<Y> implements I<Y> {[| |]}
verify.rangeAfterCodeFix(`
x: { readonly [K in keyof X]: Y[K]; };
`);