Merge branch 'alexischr/nursery-canaries-managed-alloc'
[mono.git] / mcs / errors / cs0034.cs
1 // CS0034: Operator `!=' is ambiguous on operands of type `Program.A' and `Program.B'
2 // Line: 36
3
4 using System;
5
6 class Program
7 {
8         public class A
9         {
10                 public static implicit operator string (A c)
11                 {
12                         return null;
13                 }
14                 
15                 public static implicit operator Delegate (A c)
16                 {
17                         return null;
18                 }
19         }
20         
21         public class B
22         {
23                 public static implicit operator string (B c)
24                 {
25                         return null;
26                 }
27                 
28                 public static implicit operator Delegate (B c)
29                 {
30                         return null;
31                 }
32         }
33
34         public static void Main (string [] args)
35         {
36                 bool b = new A () != new B ();
37         }
38 }