fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. string DoStuff(List<T> a, List<T> b) {
  7. List<T> test;
  8. return typeof(test).ToString();
  9. }
  10. public static void Main()
  11. {
  12. List<int> a;
  13. List<string> b;
  14. string test = DoStuff(a,b);
  15. System.Console.WriteLine("test = {0}\n",test);
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(6,29): error CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(6,40): error CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty