fork download
  1. using System;
  2. public class Progam
  3. {
  4. static Tuple<A,A> Dup<A>(A a)
  5. {
  6. return new Tuple<A,A>(a,a);
  7. }
  8.  
  9. static void Main()
  10. {
  11. // should take forever to typecheck
  12. var x = Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(Dup(42))))))))))))))))))))))));
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(12,12): warning CS0219: The variable `x' is assigned but its value is never used
stdout
Standard output is empty