[mono-vb] Using Variables
Rolf Bjarne Kvinge
rolflists at ya.com
Wed Jan 13 20:14:22 EST 2010
Hi,
> Hi,
>
> The following test code compiles fine with Microsoft's compiler but
> fails with the mono vbnc.
>
> Imports System
>
> Public Class Main
>
> Public Shared Sub Main()
> Using fStream As IO.FileStream = IO.File.OpenWrite("test.txt"), _
> writer As New IO.StreamWriter(fStream)
> writer.WriteLine("hi")
> End Using
> End Sub
>
> End Class
>
>
> I took a look at the code. The attached patch fixes the problem but I
> am not sure if it is the correct fix. I developed the patch against
> the mono-basic-2.6.tar.gz tarball, but it applies cleanly to SVN.
Thanks a lot for the test case and patch, your patch was almost right (good
enough for me to understand the issue and find the proper fix instantly,
instead of debugging ;-), the fix has been committed to SVN in r149518.
Great work!
Rolf
>
> Thanks,
> John
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.725 / Virus Database: 270.14.133/2612 - Release Date:
> 01/12/10 08:35:00
More information about the Mono-vb
mailing list