Skip to content

Commit b65f58e

Browse files
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<T___Canon>`.
1 parent 82d06f5 commit b65f58e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coreclr/tools/Common/TypeSystem/RuntimeDetermined/RuntimeDeterminedType.Diagnostic.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System;
5+
46
namespace Internal.TypeSystem
57
{
68
partial class RuntimeDeterminedType
@@ -17,7 +19,7 @@ public override string DiagnosticNamespace
1719
{
1820
get
1921
{
20-
return _rawCanonType.DiagnosticNamespace;
22+
return String.Concat(_runtimeDeterminedDetailsType.DiagnosticName, "_", _rawCanonType.DiagnosticNamespace); ;
2123
}
2224
}
2325
}

0 commit comments

Comments
 (0)