Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
461 B
C#

// 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;
}
}