[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #2803] C# Compiler:: Ambigous typecast vs delegat
From: |
nobody |
Subject: |
[Pnet-developers] [bug #2803] C# Compiler:: Ambigous typecast vs delegate in brackets |
Date: |
Fri, 04 Jul 2003 21:02:54 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 |
=================== BUG #2803: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2803&group_id=353
Changes by: Rhys Weatherley <address@hidden>
Date: Sat 07/05/2003 at 01:02 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Wont Fix
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
csc also gets confused, thinking that the construct is a
cast instead of an invocation. It even complains that "cb"
is not declared because it is trying to locate it as a
type. I'm surprised that SDL.NET compiles at all if
it is using code like this. More information required
before I can go further with this.
ambiguity.cs(7,27): error CS0246: The type or namespace name 'cb' could not be
found (are you missing a using directive or an assembly reference?)
ambiguity.cs(8,18): error CS0201: Only assignment, call, increment, decrement,
and new object expressions can be used as a statement
ambiguity.cs(8,18): error CS0246: The type or namespace name 'cb' could not be
found (are you missing a using directive or an assembly reference?)
=================== BUG #2803: FULL BUG SNAPSHOT ===================
Submitted by: t3rmin4t0r Project: DotGNU Portable.NET
Submitted on: Wed 03/12/2003 at 16:14
Category: None Severity: 5 - Major
Bug Group: None Resolution: Wont Fix
Assigned to: None Status: Closed
Summary: C# Compiler:: Ambigous typecast vs delegate in brackets
Original Submission: The compiler fails to realize
(cb)(null);
is the call of the delegate cb with args null.
and one case throws a parser error as well ?.
(From SDL.net code ...)
Follow-up Comments
*******************
-------------------------------------------------------
Date: Sat 07/05/2003 at 01:02 By: rweather
csc also gets confused, thinking that the construct is a
cast instead of an invocation. It even complains that "cb"
is not declared because it is trying to locate it as a
type. I'm surprised that SDL.NET compiles at all if
it is using code like this. More information required
before I can go further with this.
ambiguity.cs(7,27): error CS0246: The type or namespace name 'cb' could not be
found (are you missing a using directive or an assembly reference?)
ambiguity.cs(8,18): error CS0201: Only assignment, call, increment, decrement,
and new object expressions can be used as a statement
ambiguity.cs(8,18): error CS0246: The type or namespace name 'cb' could not be
found (are you missing a using directive or an assembly reference?)
CC list is empty
File Attachments
****************
-------------------------------------------------------
Date: Wed 03/12/2003 at 16:14 Name: ambiguity.cs Size: 0KB By: t3rmin4t0r
test case
http://savannah.gnu.org/bugs/download.php?group_id=353&bug_id=2803&bug_file_id=350
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2803&group_id=353
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bug #2803] C# Compiler:: Ambigous typecast vs delegate in brackets,
nobody <=