Collection initializer refactoring bug

Not sure, if it's already reported or fixed in R# 8, but when using "Use collection initializer" and assignment is used in the Add statement, the refactored code is invalid, see the attached screenshot.
1. initial state
2. the hint for the refactoring
3. the status after R# refactoring using Alt+Enter
4. the working solution I had to use.

Please sign in to leave a comment.