fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6.  
  7. static List<T> F<T>(IDictionary<int, IEnumerable<T>> dictionary)
  8. {
  9. // ...
  10. return new List<T>();
  11. // ...
  12. }
  13.  
  14. public static void Main()
  15. {
  16. var mydict = new Dictionary<int, LinkedList<int>>();
  17. F(mydict);
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(17,3): error CS0411: The type arguments for method `Test.F<T>(System.Collections.Generic.IDictionary<int,System.Collections.Generic.IEnumerable<T>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty