[mono-vb] Unexpected error when compiling vb class with Property method.

Rolf Bjarne Kvinge rolflists at ya.com
Sat Mar 10 07:10:19 EST 2007



> -----Original Message-----
> From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
> bounces at lists.ximian.com] On Behalf Of Tony Yu
> Sent: martes, 06 de marzo de 2007 8:21
> To: mono-vb at lists.ximian.com
> Subject: [mono-vb] Unexpected error when compiling vb class with
> Property method.
> 
> Hi,
>    When I have compiled the simple class via vbnc under mono 2.0, the
> follow error returned. I guessed that should be normally compiled under
> MS.NET 2.0. Any hint?
> 
> Public Class PropTestClass
> 
>     Private poActiveObject As Object = Nothing
> 
>     Public Property ActiveObject() As Object
>         Get
>             Return poActiveObject
>         End Get
>         Set(ByVal aoValue As Object)
>             poActiveObject = aoValue
>         End Set
>     End Property
> 
> End Class
> >tony2u at tony-laptop:$vbnc /out:Infrastructure.Base.dll /target:library
> PropTestClass.vb
> 
> VisualBasic.Net Compiler version 0.0.0.4805
> Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.
> 
> Unexpected error: An error message should have been shown: 'Name
> 'aoValue' could not be resolved, PropTestClass.vb (10,37)'
> Compilation took 00:00:02.2359150
> 
This is a bug in the compiler, please file a bug report here:
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Compilers

Rolf




More information about the Mono-vb mailing list