[nem-bug] [Nemerle 0000984]: Ugly error message if incorrect default value for parameter

feedback at nemerle.org feedback at nemerle.org
Mon Apr 2 00:30:21 CEST 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=984> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   984
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             04-02-2007 00:30 CEST
Last Modified:              04-02-2007 00:30 CEST
======================================================================
Summary:                    Ugly error message if incorrect default value for
parameter
Description: 
module Program
{
  Test(_ = false : bool) : void // E: invalid default value for parameter
'_N_u1583': '(false : bool)', only literals are supported
  {
  }
  
  Main() : void { }
}

The 'invalid default value' is ugly. Compiler must say:
Incorrect format of parameter default value. You should use 'paramName =
<literal> : <type>'.
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
04-02-07 00:30 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list