Skip to content

Unexpected compiler error occurs on PascalCase type names #6539

Closed

Description

@cometkim

with v11.0.0-rc.8

type \"A" = {foo: int}

let fn = ({foo}) => {
  foo
}
File "jscomp/ml/env.ml", line 909, characters 26-32: Assertion failed

playground link

Activity

  1. zth commented on Dec 27, 2023

    @zth
    Member

    Is this a new issue?

  2. cometkim commented on Dec 27, 2023

    @cometkim
    MemberAuthor

    No. It also happens in v9.x.

    Maybe it was there from the beginning of the new syntax

  3. zth commented on Dec 27, 2023

    @zth
    Member

    Definitely sounds like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions