R# 3.0 RC2 Optimize imports VB.NET

I have code (Resources is class):
==============
Imports ScreenSaver2.My.Resources

Public Class Class1
Public Sub Test()
Dim str1 As String = String1
Dim str2 As String = SR_Class1_Test_1234
Dim str3 As String = SR_Class1_Test_1234
End Sub
End Class

===========
After optimize:


Public Class Class1
Public Sub Test()
Dim str1 As String = String1
Dim str2 As String = SR_Class1_Test_1234
Dim str3 As String = SR_Class1_Test_1234
End Sub
End Class


7 comments
Comment actions Permalink

What is wrong?
Please could you provide the complete sample.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Alexander Nesterenko" <framework3705@mail.ru> wrote in message
news:57490f0993f68c98241c36ef785@news.jetbrains.com...
>I have code (Resources is class):

==============
Imports ScreenSaver2.My.Resources

>

Public Class Class1
Public Sub Test()
Dim str1 As String = String1
Dim str2 As String = SR_Class1_Test_1234
Dim str3 As String = SR_Class1_Test_1234
End Sub
End Class

>

===========
After optimize:

>
>

Public Class Class1
Public Sub Test()
Dim str1 As String = String1
Dim str2 As String = SR_Class1_Test_1234
Dim str3 As String = SR_Class1_Test_1234
End Sub
End Class

>



0
Comment actions Permalink

What is wrong?

Code is break, line with import directive is absent.


0
Comment actions Permalink

In Final Release bug still present.


0
Comment actions Permalink

Without complete sample, it is not clear why this import is necesarry

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Alexander Nesterenko" <framework3705@mail.ru> wrote in message
news:57490f0994988c982bbb7b9b510@news.jetbrains.com...
>> What is wrong?

Code is break, line with import directive is absent.

>



0
Comment actions Permalink

Complete sample is attached. Open code for Form1 and call "Optimize imports".


0
Comment actions Permalink

Sorry, it's attachment.

Attachment not added (general error): "WindowsApplication1.zip"

0
Comment actions Permalink

The problem was successfully reproduced.
Will be fixed in 3.0.2

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Alexander Nesterenko" <framework3705@mail.ru> wrote in message
news:57490f0994e88c982eafe81e91b@news.jetbrains.com...
Sorry, it's attachment.


0

Please sign in to leave a comment.