rescript-compiler
rescript-compiler copied to clipboard
Weird formatting when assigning function to ref
let f = ref(ignore)
// Ok
f.contents = () => {
doA()
doB()
}
// Weird
f :=
(
() => {
doA()
doB()
}
)
And with an attribute, it gets weird in both cases:
let f = ref(ignore)
f.contents = @attr
() => {
doA()
doB()
}
f :=
(
@attr
() => {
doA()
doB()
}
)