This issue is present since `v12.0.0-alpha.3`. The formatter strips comments from dictionaries without keys and inserts a syntactically invalid trailing comma: ```rescript // Before formatter let _: dict<()> = dict{ // a comment } ``` ```rescript // After formatter let _: dict<unit> = dict{ , } ``` [Playground link](https://rescript-lang.org/try?version=v12.0.0-beta.1&module=esmodule&code=DYUwLgBA+gXBAmBLAxmAPACgJQD4IF4EUwBvAKAggHoqIBDCZAewFsWQA7MMgXyA)