[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #11519] problems on using "using"
From: |
wolfgang haefelinger |
Subject: |
[Pnet-developers] [bugs #11519] problems on using "using" |
Date: |
Fri, 7 Jan 2005 15:09:10 +0000 (UTC) |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #11519] Latest Modifications:
Changes by:
wolfgang haefelinger <address@hidden>
'Date:
Fri 01/07/2005 at 14:11 (GMT)
------------------ Additional Follow-up Comments ----------------------------
There's another thing which makes me a bit perplex: GCJ and also Jikes have
kind of similar problems on "import". Could it be that there is a common and
untouched code base for all this tools??
/**************************************************************************/
[bugs #11519] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11519>
Project: DotGNU Portable.NET
Submitted by: wolfgang haefelinger
On: Fri 01/07/2005 at 14:04
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: problems on using "using"
Original Submission: I browsed for this problem but could not find an entry -
however I'm not a C# expert, so please apologize if this problem is trivial or
already known:
I have a public class "Token" in namespace "antlr" in file "antlr.cs". In
another file "main.cs" I'm using this public class like this:
using Token = antlr.Token;
class Main {
public static void Main(string[] args) {
Token t0;
}
}
This works fine doing all in one shot:
$ cscc /t:exe main.cs antlr.cs
But when building an assembly for antlr.cs and using it, I'm getting strange
error messages:
$ cscc /t:library /out:antlr.dll antlr.cs
$ cscc /t:exe main.cs /r:antlr.dll
main.cs:2: invalid left operand to `.'
main.cs:8: invalid type specification `Token'
I'm using "cscc version 0.6.10" compiled from scratch on Mandrake 10.
Note: I do not have this problems using Microsoft .NET 1.1 nor do I have this
problems using Mono 1.0.5.
I attached demo.tgz containing my *.cs files.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Fri 01/07/2005 at 14:11 By: wolfgang haefelinger <oraetlabora>
There's another thing which makes me a bit perplex: GCJ and also Jikes have
kind of similar problems on "import". Could it be that there is a common and
untouched code base for all this tools??
-------------------------------------------------------
Date: Fri 01/07/2005 at 14:09 By: wolfgang haefelinger <oraetlabora>
I forgot to mention that I can "workaround" the problem when writing
using antlr;
instead of "using Token = antlr.Token;" - so it appears a problem of "using"
and that's why I gave this problem
appropriate title.
File Attachments
-------------------
-------------------------------------------------------
Date: Fri 01/07/2005 at 14:04 Name: demo.tgz Size: 263B By: oraetlabora
contains demo files antlr.cs and main.cs
http://savannah.gnu.org/bugs/download.php?item_id=11519&item_file_id=2036
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/