Reporter | 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:
ReSharper provides a quick-fix to add method body since destructors must have bodies.
Applying the quick-fix modifies the code as follows:
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.
~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.