diff options
author | Marek Safar <marek.safar@gmail.com> | 2012-12-05 14:14:10 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2012-12-05 14:14:10 +0400 |
commit | c4b3a047f1c452fede8bf6b7a2d4d3a80399b9af (patch) | |
tree | 2898521d8c27684d1d542b3bc5b09b4337dd3ab1 | |
parent | 783210af9d0a3a03599aa9701f713c33fbbbb608 (diff) |
Add new test
-rw-r--r-- | mcs/errors/cs0411-23.cs | 22 | ||||
-rw-r--r-- | mcs/errors/cs2002.cs | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/mcs/errors/cs0411-23.cs b/mcs/errors/cs0411-23.cs new file mode 100644 index 00000000000..f12aaf9c96c --- /dev/null +++ b/mcs/errors/cs0411-23.cs @@ -0,0 +1,22 @@ +// CS0411: The type arguments for method `System.Linq.Enumerable.OrderBy<TSource,TKey>(this System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource,TKey>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 20 + +using System.Collections.Generic; +using System.Linq; + +public class C +{ + public string Name () + { + return "aa"; + } +} + +class Z +{ + void Test () + { + List<C> l = null; + var r = l.OrderBy (f => f.Name).ToList (); + } +}
\ No newline at end of file diff --git a/mcs/errors/cs2002.cs b/mcs/errors/cs2002.cs index 91a3a612e54..45b8d5e5874 100644 --- a/mcs/errors/cs2002.cs +++ b/mcs/errors/cs2002.cs @@ -1,3 +1,3 @@ // CS2002: Source file `cs2002.cs' specified multiple times // Line: 0 -// Compiler options: cs2002.cs /warnaserror +// Compiler options: /warnaserror cs2002.cs |