[nem-bug] [Nemerle 0000786]: internal compiler error
feedback at nemerle.org
feedback at nemerle.org
Wed Nov 15 12:38:22 CET 2006
A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=786>
======================================================================
Reported By: wolfhound
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 786
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 11-14-2006 21:28 CET
Last Modified: 11-15-2006 12:38 CET
======================================================================
Summary: internal compiler error
Description:
using System.Collections.Generic;
class StateMachine[T]
{
public class StateSet
{
public Add(state : State) : void
{
}
}
public class State
{
public Add() : void
{
def set = StateSet();
set.Add(State());
}
}
}
======================================================================
----------------------------------------------------------------------
nazgul - 11-14-06 21:32
----------------------------------------------------------------------
Looks like MS.NET bug, move StateSet and State classes outside generic
StateMachine class....
----------------------------------------------------------------------
wolfhound - 11-15-06 12:38
----------------------------------------------------------------------
But it's work:
using System.Collections.Generic;
class StateMachine<T>
{
public class StateSet
{
public void Add(State state)
{
}
}
public class State
{
public void Add()
{
StateSet set = new StateSet();
set.Add(new State());
}
}
}
class Program
{
static void Main(string[] args)
{
new StateMachine<int>.State().Add();
}
}
Issue History
Date Modified Username Field Change
======================================================================
11-14-06 21:28 wolfhound New Issue
11-14-06 21:32 nazgul Note Added: 0001508
11-15-06 12:38 wolfhound Note Added: 0001509
======================================================================
More information about the bugs
mailing list