[nem-bug] [Nemerle 0000762]: Extension methods overloads and property

feedback at nemerle.org feedback at nemerle.org
Sat Sep 23 05:29:15 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=762> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   762
Category:                   Code Completion Engine
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             09-23-2006 05:29 CEST
Last Modified:              09-23-2006 05:29 CEST
======================================================================
Summary:                    Extension methods overloads and property
Description: 
using System.IO;
using Nemerle.Utility;

def dir = DirectoryInfo("test");

when(!dir.Exists) // Exists is a property!
  dir.Create();

---------------------------------------------------
Main.n(6,7,6,17): error : typing fails on ambiguity between overloads:
  property `System.IO.DirectoryInfo.Exists'
  method Nemerle.Utility.NString.Exists(s : string, f : char -> bool) :
bool
  method Nemerle.Utility.NArray.Exists(a : array ['a.721], f : 'a.721 ->
bool) : bool


======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
09-23-06 05:29 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list