Closed
Description
TypeScript Version: 2.9.2
Search Terms:
This is unknown parent for type parameter
Code
interface i { a: number; }
type x = { [K in Exclude<keyof i, keyof j>]: i[K]; }
Step
Run command 'tsc a.ts' and 'tsc a.ts --declaration true'
The output of command 'tsc a.ts' is right, "error TS2304: Cannot find name 'j'".
But command 'tsc a.ts --declaration true' output something wrong in tsc:
C:\Users\bysdxt\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:63860
throw e;
^
Error: Debug Failure. This is unknown parent for type parameter: 176