blob: b27656de91a876830e90c1e7ec73e91bd70c82b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS0455: Type parameter `Y' inherits conflicting constraints `long' and `long?'
// Line: 11
abstract class A<T1, T2>
{
public abstract void Foo<U> () where U : T1, T2;
}
class B : A<long, long?>
{
public override void Foo<Y> ()
{
}
}
|