using System;using System.Linq;using System.Collections.Generic;public class Test{ public static void Main() { Console.WriteLine(Create()); } public static IEnumerable<T> Create<T>() { return Enumerable.Empty<T>(); }}
1 2 10 42 11
prog.cs(8,35): error CS0305: Using the generic method `Test.Create<T>()' requires `1' type argument(s) prog.cs(10,34): (Location of the symbol related to previous error) Compilation failed: 1 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!