[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0452-9.cs
1 // CS0452: The type `U' must be a reference type in order to use it as type parameter `UU' in the generic type or method `B.Test<UU>(UU)'
2 // Line: 13
3
4 abstract class A<T>
5 {
6         public abstract void Foo<U> (U arg) where U : T;
7 }
8
9 class B : A<int>
10 {
11         public override void Foo<U> (U arg)
12         {
13                 Test (arg);
14         }
15         
16         void Test<UU> (UU a) where UU : class
17         {
18         }
19 }