blob: 2fad06122f2be6c55b998cd560daf691b8c38ca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// CS0029: Cannot implicitly convert type `Bar<long>' to `Foo<int>'
// Line: 15
class Foo<T>
{
}
class Bar<T> : Foo<T>
{
}
class X
{
static void Main ()
{
Foo<int> foo = new Bar<long> ();
}
}
|