diff --git a/compiler/damlc/daml-ide-core/dlint.yaml b/compiler/damlc/daml-ide-core/dlint.yaml index 7ba49ee23c1d..d19239432128 100644 --- a/compiler/damlc/daml-ide-core/dlint.yaml +++ b/compiler/damlc/daml-ide-core/dlint.yaml @@ -984,7 +984,5 @@ - ignore: {name: Use camelCase} # Not relevant to DAML - ignore: {name: Use newtype instead of data} -# Bracketing rules +# Don't warn on redundant parens - ignore: {name: Redundant bracket} -- ignore: {name: Redundant $} -- ignore: {name: Move brackets to avoid $} diff --git a/compiler/damlc/tests/daml-test-files/Fungible.daml b/compiler/damlc/tests/daml-test-files/Fungible.daml index bf27a72e2eef..3573673f3fdb 100644 --- a/compiler/damlc/tests/daml-test-files/Fungible.daml +++ b/compiler/damlc/tests/daml-test-files/Fungible.daml @@ -16,7 +16,7 @@ template Quantity t => Fungible t with otherAsset <- fetch other let newAmount = asset.amount + otherAsset.asset.amount archive other - create $ Fungible $ asset with amount = newAmount + create $ Fungible asset with amount = newAmount Split: (ContractId (Fungible t), ContractId (Fungible t)) with splitAmount: Decimal