fork download
  1. using System;
  2. public module HelloWorld
  3. {
  4. public class Test[T] where T : struct, IComparable
  5. {
  6. public Value : Nullable[T];
  7. }
  8.  
  9. public Main() : void
  10. {
  11. Console.WriteLine("Hello world!");
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nem:6:8:6:24: error: typing constraint on T not satisfied, upon instantiation of System.Nullable: System.IComparable is not a subtype of System.ValueType [simple require]
stdout
Standard output is empty