Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Formatter removing record field punning? #252

Closed
@illusionalsagacity

Description

@illusionalsagacity

Is this intended behavior? I seem to remember refmt automatically using punning

https://rescript-lang.org/try?code=PTAEAUBsFMEMGdqgHYHsAu0BcAoEoBaIvMAFQAskpYBPAcwCdUBXZAE1AEt5R51PIkULFAB3VAwDWXZKAAOTRtHjwSoAErQAygGMGnOelBhUkDpoSpZ8GsnSwAHr3Isz82A0SgAVsz5qAM05kJAAKOlRQdEj0SlAAIi1odH5kOnh49xChAIko1Do6SGC6Xlt7BwBKADoSNQAxaGgchib8+UhaYSZWDlh2UB1UAFs5ASR4Eeg1TV19Q0HUNmgAQhwcdBo5JFzIgF5QAG9YLF50fTSAGlAAI1O+C7oAX3WYIxED+IDYSWh4nDet1An2iv2Q-wByUGwKOsGuNxeQA

type example = {a: string, b: string}
let a = "fake"
let b = "token"
let c = {a, b}

gets formatted to:

type example = {a: string, b: string}
let a = "fake"
let b = "token"
let c = {a: a, b: b}

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