fork(3) 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(13,3): error CS1525: Unexpected symbol `}', expecting `,' or `;'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty