From 48ec49de18233718856e2d51b08255a03e378351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 21 Mar 2022 18:56:18 +0900 Subject: [PATCH] Fix up DiagnosticName of RuntimeDetermined types 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 b78e4c398e0b33..91451e43ee6131 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); ; } } }