fork download
  1. using System;
  2. public module HelloWorld
  3. {
  4. public interface ITest
  5. {
  6. }
  7.  
  8. public class Test[T] where T : ValueType, new(), ITest
  9. {
  10. public Value : Nullable[T];
  11. }
  12.  
  13. public Main() : void
  14. {
  15. Console.WriteLine("Hello world!");
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nem:8:8:11:2: error: the type `T.722' must be a value type in order to use it as type parameter `T' in System.Nullable[T.722]
stdout
Standard output is empty