bugDotGNU Portable.NET - Bugs: bug #1747, Incorrect error for type

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1747: Incorrect error for type

Submitted by:  Rhys Weatherley <rweather>
Submitted on:  Tue 19 Nov 2002 01:30:54 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Gopal.V <t3rmin4t0r>
Open/Closed: Closed

Tue 19 Nov 2002 02:19:21 AM UTC, comment #1:

Fixed in cvs ... my mistake adding that extra error :-(, nothing
to do with scope

Gopal.V <t3rmin4t0r>
Project AdministratorIn charge of this item.
Tue 19 Nov 2002 01:30:54 AM UTC, original submission:

using System;

public class Test
{
public static void Main()
{
Test t1;
Test t2;
bool result = (t1 is t2);
}
}

Gives this:

istest.cs:10: `t2' is not declared in the current scope
istest.cs:10: invalid type specification
istest.cs:10: warning: `is' expression is always false

"t2" is declared, but it isn't of the correct category for the "is" expression. The second error is the correct one. The first is spurious, and misleading.

Cscctest doesn't currently verify because of this problem, that arose out of the recent scope fixes.

Rhys Weatherley <rweather>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 19 Nov 2002 02:19:21 AM UTCt3rmin4t0rStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1