Skip to content

Commit

Permalink
Fix complex case with generic types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Dec 1, 2023
1 parent 9dde939 commit 2ad2362
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using JetBrains.ReSharper.Psi.Modules;
using JetBrains.ReSharper.Psi.Resolve;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.TestRunner.Abstractions.Extensions;
using ReSharperPlugin.SpecflowRiderPlugin.Caching.StepsDefinitions;
using ReSharperPlugin.SpecflowRiderPlugin.Caching.StepsDefinitions.AssemblyStepDefinitions;
using ReSharperPlugin.SpecflowRiderPlugin.Psi;
Expand Down Expand Up @@ -88,7 +89,7 @@ public override ResolveResultWithInfo ResolveWithoutCache()
{
if (methodParameter.Type is IDeclaredType declarationType
&& !declarationType.GetClrName().FullName.EndsWith(expectedTypeName)
&& !declarationType.GetLongPresentableName(CSharpLanguage.Instance).EndsWith(expectedTypeName))
&& !declarationType.GetLongPresentableName(CSharpLanguage.Instance).SubstringBefore("<").EndsWith(expectedTypeName.SubstringBefore("<")))
{
allParameterTypesMatch = false;
break;
Expand Down

0 comments on commit 2ad2362

Please sign in to comment.