BUG: Type keywords not suggested in generic type parameters (R# 2021.1)

Completed

Given the following class:

static class Generics
{
private static Action<T1, T2, T3> Create<T1, T2, T3)() => null;
private static readonly Action<int, int, string> fn = Create<...
}

Auto-complete will happily suggest the C# type keywords for all three parameters on the variable declaration.

But when completing the parameters for the method call, only the first parameter will include the type keywords:

The second and third parameters do not include the type keywords in the auto-complete list, even if I type the complete keyword:

I am forced to hit "Escape" to dismiss the auto-complete list every single time; otherwise, R# replaces the type keyword which I have typed out with the first CLR type name in the list as soon as I type ",":

This was not happening in 2020.3.

JetBrains ReSharper 2021.1 Build 211.0.20210404.90818 built on 2021-04-04
ReSharper 2021.1.20210404.93331
VS2019 16.9.31129.286

0
2 comments
Avatar
Angelina Elycheva

Hello Richard,

Please accept apologies that haven't replied earlier to your post.

I've created the corresponding request - https://youtrack.jetbrains.com/issue/RSRP-484042.

Though the behavior is a bit different for me:

1. The first int appears in the list as the first completion item. The issue happens with the second and third parameters.

2. I could reproduce the same behavior in ReSharper 2020.3.

Please let me know if I'm missing something.

Thank you.

1

The issue happening with the second and third parameters only matches my description. :)

Maybe the problem was introduced earlier than I thought.

1

Please sign in to leave a comment.