We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef51d0 commit 9c177fbCopy full SHA for 9c177fb
1 file changed
ReSharper.FSharp/src/FSharp/FSharp.TypeProviders.Protocol/src/Models/ProxyProvidedTypeWithContext.cs
@@ -188,7 +188,10 @@ public override bool Equals(object y) =>
188
public IClrTypeName GetClrName() => myClrTypeName ??= ProxyProvidedType switch
189
{
190
IProxyProvidedType { IsCreatedByProvider: true } =>
191
- new ClrTypeName(Context.TryGetILTypeRef(this).Value.BasicQualifiedName),
+ Context.TryGetILTypeRef(this) is { Value: { } ilTypeRef }
192
+ ? new ClrTypeName(ilTypeRef.BasicQualifiedName)
193
+ : EmptyClrTypeName.Instance,
194
+
195
IProxyProvidedType type => type.GetClrName()
196
};
197
0 commit comments