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

RSRP-200117: "Add method body" quick-fix handles destructors incorrectly

$
0
0
Reporter Jura Gorohovsky (gorohoroh) Jura Gorohovsky (gorohoroh)
Created Dec 10, 2010 11:41:16 PM
Updated Jan 13, 2012 9:56:48 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
In this scenario:
~MyClass


ReSharper provides a quick-fix to add method body since destructors must have bodies.

Applying the quick-fix modifies the code as follows:
~MyClass
	{
	throw new NotImplementedException();
	}

Note that while ReSharper does insert the body, it doesn't insert parentheses. Formally it shouldn't but it would be great if it does because otherwise, the caret is positioned in the end of the body and the closing brace is highlighted as "unexpected symbol", which is kind of obscure.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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