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

RSRP-293011: Transform out parameters: VB.NET usages in Call statement

$
0
0
Reporter Alexander Shvedov (shvedov) Alexander Shvedov (shvedov)
Created Apr 6, 2012 1:19:53 AM
Updated Apr 6, 2012 1:19:53 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Dmitry Ivanov (daivanov)
Subsystem Refactoring
Affected versions 7.0 Preview
Fixed in build No Fixed in build
Module Module1

    Sub Main()
        Dim x = 2
        Call Foo(x)
    End Sub

    Sub Foo(ByRef x As Integer)
        x = 1
    End Sub

End Module

Transform result is non-compilable:

Module Module1

    Sub Main()
        Dim x = 2
        Call x = Foo()
    End Sub

    Function Foo() As Integer
        Dim x As Integer
        x = 1
        Return x
    End Function

End Module

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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