Closed synaptiko closed 4 years ago
Here's an example:
module StateLenses = [%lenses type state = { isChecked: bool }];
The warning will be:
Warning number 23 (No file name) All the fields are already explicitly listed in this record. You can remove the `...` spread.
It's not obvious where the problem is until you check the code generated by PPX where spread is used in the generated setter.
Here's an example:
The warning will be:
It's not obvious where the problem is until you check the code generated by PPX where spread is used in the generated setter.