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

RSRP-469425: Complete statement inside an object initializer leads to code breakage

$
0
0
Reporter Alexander Kirsanov (alexander_kirsanov) Alexander Kirsanov (alexander_kirsanov)
Created Apr 26, 2018 5:07:32 PM
Updated Apr 26, 2018 5:07:32 PM
Subsystem Complete Statement
Assignee Slava Tutushkin (slava.tutushkin)
Priority Normal
State Submitted
Type Bug
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
If a statement is correct and finished, complete statement shouldn't do anything except moving caret to out of the block.

Calling this action in the example below leads to double insertion of }; (btw collection initializers are fine)
class Program
{
static void Main(string[] args)
{
var x = new object
{
//<caret> press enter
};
}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>