mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
c0e28d83ee
* Turn warnings for module name/record name mismatches into errors The module name warning existed for ages. We started warning about the record name mismatch in 0.13.55 so I’d like to turn it into an error before 1.0 changelog_begin - [DAML Compiler] File names must now match up with module names. This already produced a warning in previous releases. - [DAML Compiler] It is now an error to define a record with a single constructor where the constructor does not match the type name. To fix the error you need to change ```data X = Y { … }``` to ```data X = X { … }```. This restriction only applies to single-constructor records. Variants and enums are not affected. This already produced a warning in 0.13.55. changelog_end * Fix integration tests * Fix docs * Fix lsp tests |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel |