Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469340: Deconstruction: Undo of CA "Merge deconstructed declaration" produces uncompilable code if name of variable was not confirmed by Enter.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 19, 2018 7:23:23 PM
Updated Apr 19, 2018 7:23:23 PM
Subsystem Context Actions
Assignee Andrew Karpov (andrew.karpov)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM

JetBrains ReSharper Ultimate 2018.1 12.0.20180418.033450-eap10d.

            var (name, phone) = person;
            Console.WriteLine(name, phone);
            Console.WriteLine(name, phone);
  1. Invoke "Merge deconstructed declaration" CA on ( in var (name, phone) = person;
  2. (Do not click Enter to confirm the variable name) Undo by Ctrl+Z.

Actual result:
Uncompilable code:

            var (name, phone) = person;
            Console.WriteLine((name, phone)ame, (name, phone)hone);
            Console.WriteLine((name, phone)ame, (name, phone)hone);

Expected result:
Previous version of code.


Viewing all articles
Browse latest Browse all 106942

Trending Articles