[nem-bug] [Nemerle 0000755]: Confusing error

feedback at nemerle.org feedback at nemerle.org
Sat Sep 30 01:02:30 CEST 2006


The following issue has been UPDATED.
======================================================================
<http://nemerle.org/bugs/view.php?id=755> 
======================================================================
Reported By:                IT
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   755
Category:                   Compiler (type engine)
Reproducibility:            always
Severity:                   minor
Priority:                   high
Status:                     new
======================================================================
Date Submitted:             09-15-2006 06:43 CEST
Last Modified:              09-30-2006 01:02 CEST
======================================================================
Summary:                    Confusing error
Description: 
public module Program
{
    Main() : void
    {
        def xxx = "";
        _ = xxxx.Substring(0);
    }
}

I have the following error message with this code:

test.n:6:13:6:27: error: unbound name `xxxx.Substring'

The problem is I start looking what's wrong with 'Substring' identifier.
Compiler should say "unbound name `xxxx'".
======================================================================

----------------------------------------------------------------------
 malekith - 09-23-06 09:24 
----------------------------------------------------------------------
The problem is, it is hard to tell "System.StRing" from "xxxx.Substring".
On the other hand, I think we can collect information about all the
namespaces visible in given place and give information about it.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
09-15-06 06:43 IT             New Issue                                    
09-15-06 06:44 IT             Category                 Code Completion Engine =>
Compiler
09-15-06 06:44 IT             Description Updated                          
09-23-06 09:24 malekith       Note Added: 0001451                          
09-30-06 01:02 VladD2         Priority                 normal => high      
09-30-06 01:02 VladD2         Category                 Compiler => Compiler
(type engine)
09-30-06 01:02 VladD2         Description Updated                          
======================================================================




More information about the bugs mailing list