2017-03-17 19:54:51 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////interface I<X> {
|
|
|
|
//// x: { readonly [K in keyof X]: X[K] };
|
|
|
|
////}
|
|
|
|
////class C<Y> implements I<Y> {}
|
2017-03-17 19:54:51 +01:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'I<Y>'",
|
|
|
|
newFileContent:
|
|
|
|
`interface I<X> {
|
|
|
|
x: { readonly [K in keyof X]: X[K] };
|
|
|
|
}
|
2018-01-12 02:43:27 +01:00
|
|
|
class C<Y> implements I<Y> {
|
|
|
|
x: { readonly [K in keyof Y]: Y[K]; };
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|