Fix Debug.Assert use of string interpolation (#57668)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 18 Aug 2021 19:36:43 +0000 (15:36 -0400)
committerGitHub <noreply@github.com>
Wed, 18 Aug 2021 19:36:43 +0000 (15:36 -0400)
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/coreclr/tools/Common/JitInterface/SystemVStructClassificator.cs

index 55b8e2d..c4105d1 100644 (file)
@@ -158,7 +158,7 @@ namespace Internal.JitInterface
                 case TypeFlags.GenericParameter:
                 case TypeFlags.SignatureTypeVariable:
                 case TypeFlags.SignatureMethodVariable:
-                    Debug.Assert(false, $"Type {typeDesc} with unexpected category {typeDesc.Category}");
+                    Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.Category}");
                     return SystemVClassificationTypeUnknown;
                 default:
                     return SystemVClassificationTypeUnknown;