Menu

#90 Nested namespaces don't work

open
nobody
5
2005-03-05
2005-03-05
No

Hi,

This won't work ("No details for property MyProp found.
You have probably forgotten to specify the
rootnamespace for the project"):

Namespace Name1.Name2
Namespace Name3
Public Class Test
Public Property MyProp() As Integer
Get
End Get
Set(ByVal Value As Integer)
End Set
End Property
End Class
End Namespace
End Namespace

If you rewrite it like this, it will work:

Namespace Name1.Name2.Name3
Public Class Test
Public Property MyProp() As Integer
Get
End Get
Set(ByVal Value As Integer)
End Set
End Property
End Class
End Namespace

It seems that nested namespaces are not supported.

Discussion

  • Fernando P. Nájera Cano

    • labels: --> Comment extractor
     
  • Markus Palme

    Markus Palme - 2005-03-08

    Logged In: YES
    user_id=560121

    I actually didn't know that such a thing as nested
    namespaces exist. currently, I don't have the time to fix it
    myself but the change should only affect one class. if you
    want to do it yourself you need to track the current
    namespace in the CommentVisitor.

     

Log in to post a comment.