Skip to content

Commit

Permalink
Fix up DiagnosticName of RuntimeDetermined types (dotnet#66937)
Browse files Browse the repository at this point in the history
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>`.
  • Loading branch information
MichalStrehovsky authored and radekdoulik committed Mar 30, 2022
1 parent a7957e2 commit 54de9d6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -17,7 +19,7 @@ public override string DiagnosticNamespace
{
get
{
return _rawCanonType.DiagnosticNamespace;
return String.Concat(_runtimeDeterminedDetailsType.DiagnosticName, "_", _rawCanonType.DiagnosticNamespace); ;
}
}
}
Expand Down

0 comments on commit 54de9d6

Please sign in to comment.