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

RSRP-179690: Create Method confusion

$
0
0
Reporter Adam Finster (adamfinster) Adam Finster (adamfinster)
Created May 17, 2010 5:59:00 PM
Updated Jun 21, 2011 2:53:41 PM
Priority Critical
Type Bug
Fix versions 6.1
State Open
Assignee eugene legkiy (jenya.legkiy)
Subsystem No subsystem
Affected versions 5.0, 5.1, 5.1.1
Fixed in build No Fixed in build
I have one issue in ReSharper v5 that seems to be unresolved from ReSharper v4.5.

If I have a procedure like this in an ASP.NET class file where MakeThis does not yet exist:

Sub DoThis()
Dim i As Integer
Dim j As String = ""
Dim x As Decimal = MakeThis(i, j)
End Sub

I get the option to "Create Method 'MakeThis'"
and it produces this:

Private Function MakeThis(ByVal iiAs
Throw New NotImplementedException()
End Function

Yet in a VB.NET winform project, the same action produces:

Private Function MakeThis(ByVal i As Integer, ByVal s As String) As Decimal
Throw New NotImplementedException()
End Function

which is correct.

Why the difference?
In 4.5, this action would produce a runtime error and a bug report was produced, but now there is just a junk method.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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