dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #12182] Problem is with resolving fully qualifie


From: Radek Polak
Subject: [Pnet-developers] [bugs #12182] Problem is with resolving fully qualified static metod from referenced dlls
Date: Tue, 1 Mar 2005 13:52:42 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs-CZ; rv:1.7.5) Gecko/20041108 Firefox/1.0

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12182>

                 Summary: Problem is with resolving fully qualified static
metod from referenced dlls
                 Project: DotGNU Portable.NET
            Submitted by: radekp
            Submitted on: Tue 03/01/2005 at 13:52
                Category: None
                Severity: 5 - Average
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

Simple test case

// MyClass.cs
//
// compile with cscc -shared MyClass.cs

using System;

namespace MyNamespace
{
        public class MyClass
        {
                public static void Test()
                {
                        Console.WriteLine("Hi");
                }
        }
}

// Main.cs
//
// compile with cscc Main.cs /r:a.dll
using System;
//using MyNamespace;

class Class1
{
        static void Main(string[] args)
        {
                MyNamespace.MyClass.Test();
        }
}

This error is thrown by cscc:
`MyNamespace' is not declared in the current scope

mcs and csc compile without problems. 

You can also compile with: cscc MyClass.cs Main.cs and everything is fine.

The problem can be workaround if you uncomment line with using MyNamespace 

So problem is with resolving fully qualified static metod from referenced
dlls





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 03/01/2005 at 13:52  Name: namespace_test.tar.gz  Size: 427B   By:
radekp
Test program for this bug
<http://savannah.gnu.org/bugs/download.php?item_id=12182&item_file_id=2251>

    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12182>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]