List Info

Thread: Unexpected error when compiling vb class with Property method.




Unexpected error when compiling vb class with Property method.
country flaguser name
China
2007-03-06 01:20:49
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
>tony2utony-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

Regards!
Tony

_______________________________________________
Mono-vb mailing list
Mono-vblists.ximian.com
http
://lists.ximian.com/mailman/listinfo/mono-vb

Re: Unexpected error when compiling vb class with Property method.
country flaguser name
Spain
2007-03-10 06:10:19

> -----Original Message-----
> From: mono-vb-bounceslists.ximian.com
[mailto:mono-vb-
> bounceslists.ximian.com] On Behalf Of Tony Yu
> Sent: martes, 06 de marzo de 2007 8:21
> To: mono-vblists.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
> >tony2utony-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?pro
duct=Mono%3A%20Compilers

Rolf


_______________________________________________
Mono-vb mailing list
Mono-vblists.ximian.com
http
://lists.ximian.com/mailman/listinfo/mono-vb

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )