[nem-bug] [Nemerle 0000769]: Can't subscribe on event if 'Nemerle.Collections' namespace opened

feedback at nemerle.org feedback at nemerle.org
Wed Sep 27 20:32:16 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=769> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   769
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             09-27-2006 20:32 CEST
Last Modified:              09-27-2006 20:32 CEST
======================================================================
Summary:                    Can't subscribe on event if 'Nemerle.Collections'
namespace opened
Description: 
// REFERENCE: System.Windows.Forms.dll

using System.Windows.Forms;
using Nemerle.Collections; // If comments this line then compilation done
successful.

public class TestForm : Form
{
  Tree : TreeView = TreeView();

  public this()
  {
    Tree.AfterSelect += fun(_, _arg : TreeViewEventArgs) // error!
    {
    };
  }

  public static Main() : void { }
}
------------------------------------------------------------------
Main.n(10,5,10,21): error : event
`System.Windows.Forms.TreeView.AfterSelect' can only appear on the
left-side of a += or -=
Main.n(10,5,10,21): error : event
`System.Windows.Forms.TreeView.AfterSelect' can only appear on the
left-side of a += or -=
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
09-27-06 20:32 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list