module Program
{
Main() : void
{
def test[TEnu, TOut] (_ : IEnumerable[TEnu]) : void
where TEnu : IEnumerable[int]
{
}
_ = test(array[array[1, 2]]);
}
}
This is a wrong behavior.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
12-25-08 11:35 VladD2 New Issue
======================================================================
module Program
{
Main() : void
{
def test[TEnu, TOut] (_ : IEnumerable[TEnu]) : void
where TEnu : IEnumerable[int]
{
}
_ = test(array[array[1, 2]]);
}
}
This is a wrong behavior.
======================================================================
----------------------------------------------------------------------
divan - 12-25-08 13:00
----------------------------------------------------------------------
Also it seems to get ICE here:
internal compiler error: assertion ``res'' failed in file typing/TyVar.n,
line 420: failed to fixate array[int] [] with array[int]
at Nemerle.Compiler.TyVar._N__FT_Fixate_2307()
at Nemerle.Compiler.TyVar.Fix()
at Nemerle.Compiler.Typer4.DoWalk(TExpr expr)
...
And it's about contraints, with following header it compiles fine
test (_ : IEnumerable[IEnumerable[int]]) : void
Issue History
Date Modified Username Field Change
======================================================================
12-25-08 11:35 VladD2 New Issue
12-25-08 13:00 divan Note Added: 0002163
======================================================================