[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0308-7.cs
1 // CS0308: The non-generic type `Foo' cannot be used with the type arguments
2 // Line: 16
3
4 public class Foo
5 {
6         public string Test<T> ()
7         {
8                 return null;
9         }
10 }
11
12 public static class Driver
13 {
14         static object UseBrokenType ()
15         {
16                 return Foo<int> ().Test ();
17         }
18 }