Closed
Description
The following code
module A = {
type t = {a: int, b: string}
}
let f = (~a, ~b) => {A.a, b}
gets reformatted to
module A = {
type t = {a: int, b: string}
}
let f = (~a, ~b) => {A.a: A.a, b: b}
which does not compile.
Instead, it should be reformatted to
module A = {
type t = {a: int, b: string}
}
let f = (~a, ~b) => {A.a: a, b: b}
Or even better, the punning in the original code should be kept as is, see also rescript-lang/syntax#47.
Metadata
Metadata
Assignees
Labels
No labels