[nem-bug] [Nemerle 0000707]: Bug in Extension method implementation

feedback at nemerle.org feedback at nemerle.org
Mon Jul 3 08:13:09 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=707> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   707
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             07-03-2006 08:13 CEST
Last Modified:              07-03-2006 08:13 CEST
======================================================================
Summary:                    Bug in Extension method implementation
Description: 
using System;
using System.Console;

public module M1
{
  public Sort[T](this source : array[T]) : array[T]
  {
    Array.Sort(source);
    source
  }
}

WriteLine(array[4,1,3,8,2].Sort());

Retort errors:
Main.n(13,11,13,32): error : trying to access static member (method
System.Array.Sort(array : array [T.754]) : void) through an instance
...
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-03-06 08:13 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list