You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Place the caret at some location in the RHS of any of the field assignment expressions. If the exception doesn't yet occur, try opening the lightbulb menu.
Expected Behavior: No exception.
Actual Behavior:
System.InvalidOperationException : Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at Microsoft.CodeAnalysis.InlineMethod.AbstractInlineMethodRefactoringProvider`4.GetCallerSymbol(TInvocationSyntax calleeMethodInvocationNode,SemanticModel semanticModel,CancellationToken cancellationToken)
at async Microsoft.CodeAnalysis.InlineMethod.AbstractInlineMethodRefactoringProvider`4.ComputeRefactoringsAsync[TMethodDeclarationSyntax,TStatementSyntax,TExpressionSyntax,TInvocationSyntax](<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.<>c__DisplayClass12_0.<GetRefactoringFromProviderAsync>b__0(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)
The text was updated successfully, but these errors were encountered:
Version Used: VS 17.12.2
Steps to Reproduce:
Place the caret at some location in the RHS of any of the field assignment expressions. If the exception doesn't yet occur, try opening the lightbulb menu.
Expected Behavior: No exception.
Actual Behavior:
The text was updated successfully, but these errors were encountered: