Warn when casting to a larger type (#20103)

* Warn when casting to a larger type

* Revert change to error message to fix CI
This commit is contained in:
konsumlamm 2022-07-28 15:09:58 +02:00 • committed by GitHub
commit 528b6d1c3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View file

@ -80,6 +80,7 @@ type
warnHoleEnumConv = "HoleEnumConv",
warnCstringConv = "CStringConv",
warnEffect = "Effect",
warnCastSizes = "CastSizes"
warnUser = "User",
# hints
hintSuccess = "Success", hintSuccessX = "SuccessX",
@ -173,6 +174,7 @@ const
warnHoleEnumConv: "$1",
warnCstringConv: "$1",
warnEffect: "$1",
warnCastSizes: "$1",
warnUser: "$1",
hintSuccess: "operation successful: $#",
# keep in sync with `testament.isSuccess`