rsdn/nemerle — Issue #280: compile error : typing constraint on T not satisfied
Author: flarelee
Created: 2012-02-02 16:47:25+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();
}
}