Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs0457-4.cs
blob787db3ab47f1c546619dd004a3fd7a79e24cfabc
1 // CS0457: Ambiguous user defined operators `D.implicit operator D(System.Action)' and `D.explicit operator D(Foo)' when converting from `method group' to `D'
2 // Line: 25
4 using System;
6 public delegate void Foo ();
8 class D
10 public static implicit operator D (Action d)
12 return new D ();
15 public static explicit operator D (Foo d)
17 return new D ();
21 class Program
23 static void Main()
25 D d = (D) Main;