mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
e1af564bcc
* Switch from `@silent` to `@nowarn`. This annotation is native to Scala 2.12.13+ and 2.13.2+. It replaces most usages of `@silent`. I had to get creative about a couple of use cases that didn't work. Specifically: 1. Suppressing deprecation warnings works, but Scala 2.12 erroneously complains that the `@nowarn` is unnecessary. I had to suppress this warning too with `-Ywarn-unused:-nowarn`. 2. I can't seem to suppress the warning, "The outer reference in this type test cannot be checked at run time." Instead, I have refactored the code to remove the warning. We still need to use the silencer plugin to suppress some warnings about unused imports (because of compatibility between Scala 2.12 and 2.13), but this means we no longer need the library, and therefore it is not a transitive dependency that downstream consumers need to worry about. CHANGELOG_BEGIN CHANGELOG_END * Add some comments around `@nowarn` support. * language-support/scala: Fix a warning suppression. * Revert to the default warnings. Compatibility was complaining. |
||
---|---|---|
.. | ||
daml | ||
scenarios | ||
src/test/scala/com/digitalasset/daml/lf/engine/trigger/test | ||
BUILD.bazel | ||
list-triggers.sh |