fork download
  1. class Foo<T> {
  2. System.Type getType() {
  3. return typeof(T); // error!
  4. }
  5. }
  6.  
  7. class Program
  8. {
  9. public static void Main (string[] args)
  10. {
  11.  
  12. }
  13. }
Success #stdin #stdout 0.01s 33528KB
stdin
Standard input is empty
stdout
Standard output is empty