Skip to content

[Bug] Rescript 10.1.0-alpha.2 allows an empty record (?) {} where a tuple is expected #5728

Closed
@jbhoot

Description

@jbhoot

ReScript playground set to use ReScript v10.0.1 rightly raises an error for the following code snippet:

https://rescript-lang.org/try?code=C4TwDgpgBAhgxsAlgewHYChSShAZriBTcaAE0QGcwZg4ALKAXlgRVSYD4oBXVRYdBAAewCACdUMADZQA7vzoAFGCCnIYpAFxQAFHvJUa9ADRQA5NVXrSASk48+wUxZVqNNu4y54CCJlAAiAFJEUghUJFAA9CkIYCghf3lgJVdrHQBvAF8bdCA

However, v10.1.0-alpha.2 compiles with the above error, even producing a JS output. Minimal repro repo: https://github.com/jayeshbhoot/rescript-empty-record-bug

Thank you for filing! Check list:

  • Is it a bug? Usage questions should often be asked in the forum instead.
  • Concise, focused, friendly issue title & description.
  • A minimal, reproducible example.
  • OS and browser versions, if relevant.
  • Is it already fixed in master?

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