blob: efa355d582ba715b86a9df2675c1110ac228d974 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// CS0266: Cannot implicitly convert type `System.Collections.Generic.IList<int>' to `Hoge<System.Collections.Generic.IList<int>>'. An explicit conversion exists (are you missing a cast?)
// Line: 20
using System;
using System.Collections.Generic;
public class Hoge<T>
{
public static implicit operator Hoge<T> (T value)
{
return null;
}
}
public class Test
{
static void Main ()
{
IList<int> x = new List<int> ();
Hoge<IList<int>> hoge = x;
}
}
|