rsdn/nemerle — Issue #279: compile error: typing constraint on T not satisfied
Author: flarelee
Created: 2012-02-02 16:24:02+00:00
State: open

using System;
using System.Collections.Generic;
using System.Console;

module Program
{
class Ok[T] where T : struct
{
public Value : Nullable[T];
}

class Err[T] where T : struct, IComparable
{
public Value : Nullable[T]; // error
}

Main() : void
{
WriteLine("Hi!");
_ = ReadLine();
}
}

Is this normal?