Skip to content

Long (infinite?) compile times intersecting with large union #19856

@ghost

Description

TypeScript Version: 2.7.0-dev.20171108

Code

At the bottom of src/compiler/utilities.ts replace the return type of hasJSDocNodes with:

export function hasJSDocNodes(node: Node): node is HasJSDoc & { jsdoc: JSDoc[] } {

(Since hasJSDocNodes ensures that jsdoc will be defined.)

Expected behavior:

Eventually compiles.

Actual behavior:

Very long compile time. Probably has to do with HasJSDoc being a large union.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions