Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone of UnwrapParamsArray fpr params collections #72225

Closed
AlekseyTs opened this issue Feb 22, 2024 · 0 comments · Fixed by #76177
Closed

Clone of UnwrapParamsArray fpr params collections #72225

AlekseyTs opened this issue Feb 22, 2024 · 0 comments · Fixed by #76177

Comments

@AlekseyTs
Copy link
Contributor

        [Fact]
        public async Task UnwrapParamsCollection()
        {
            var markup = """
                using System;
                using System.Collections.Generic;

                class C {
                    C(params IEnumerable<Action<int>> a) {
                        new C($$
                    }
                }
                """;
            await VerifyBuilderAsync(markup);
        }

Observed:

Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders.SuggestionModeCompletionProviderTests.UnwrapParamsCollection [FAIL]
  Expecting a suggestion mode, but none was present
  Expected: True
  Actual:   False
  Stack Trace:
    D:\GitHub\roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs(1541,0): at Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders.SuggestionModeCompletionProviderTests.<CheckResultsAsync>d__88.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    D:\GitHub\roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs(1512,0): at Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders.SuggestionModeCompletionProviderTests.<VerifyWorkerAsync>d__87.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    D:\GitHub\roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs(1502,0): at Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders.SuggestionModeCompletionProviderTests.<VerifyBuilderAsync>d__86.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    D:\GitHub\roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs(833,0): at Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders.SuggestionModeCompletionProviderTests.<UnwrapParamsCollection>d__52.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants