[nem-bug] [Nemerle 0000723]: "Typing fails on ambiguity between overloads" for correct code

feedback at nemerle.org feedback at nemerle.org
Sun Jul 30 13:19:31 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=723> 
======================================================================
Reported By:                OysterDva
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   723
Category:                   Compiler (type engine)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             07-30-2006 13:19 CEST
Last Modified:              07-30-2006 13:19 CEST
======================================================================
Summary:                    "Typing fails on ambiguity between overloads" for
correct code
Description: 
If class has field (probably property also) with the same name as type of
this field and there is a code in class which tries to execute method on
the field, this results in the "Typing fails on ambiguity between
overloads" error message.

Here is a simple code which reproduces the problem:

class X1
{
  public M() : void {}
}

class X2
{
  public X1 : X1 = X1();
  public K() : void
  {
    X1.M()
  }
}

_ = 1
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-30-06 13:19 OysterDva      New Issue                                    
======================================================================




More information about the bugs mailing list