Skip to content

Debug Failure. This is unknown parent for type parameter: 176 #25456

Closed
@bysdxt

Description

@bysdxt

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
a

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions