Skip to content

Native panic (nil deref) in newTypeResponse → Type.ThisType() on cloned tuple references #69

Description

@valeriobelli

Regression range: ok in bridge.9, crashes from bridge.10 (thisType wire field, #53).

This happens when eslint and @typescript-eslint/no-unsafe-assignment are used together on the following examples

export const f = (input: [string[] | undefined]) => {
	const [[a] = []] = input
     
	return a
}

I've also created a small repro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions