From b65f58e888668b662681b7259ceb5965aa7f2e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 22 Mar 2022 00:04:45 +0900 Subject: [PATCH] Fix up DiagnosticName of RuntimeDetermined types (#66937) Name/Namespace of these already includes the details type name. Bring this over to DiagnosticName too. This is so that we can distinguish between `List<__Canon>` and List`. --- .../RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tools/Common/TypeSystem/RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs b/src/coreclr/tools/Common/TypeSystem/RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs index b78e4c398e0..91451e43ee6 100644 --- a/src/coreclr/tools/Common/TypeSystem/RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs +++ b/src/coreclr/tools/Common/TypeSystem/RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; + namespace Internal.TypeSystem { partial class RuntimeDeterminedType @@ -17,7 +19,7 @@ public override string DiagnosticNamespace { get { - return _rawCanonType.DiagnosticNamespace; + return String.Concat(_runtimeDeterminedDetailsType.DiagnosticName, "_", _rawCanonType.DiagnosticNamespace); ; } } } -- GitLab