TaskAwaiter from CoreFX
[mono-project.git] / mcs / errors / cs0183-5.cs
blob834f56583df266df06648390ab960a4e7cfda204
1 // CS0183: The given expression is always of the provided (`U') type
2 // Line: 14
3 // Compiler options: -warnaserror
5 abstract class A<T>
7 public abstract bool Foo<U> (U arg) where U : T;
10 class B : A<int>
12 public override bool Foo<U> (U arg)
14 return arg is U;