Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-495.cs
1 // This code must be compilable without any warning
2 // Compiler options: -warnaserror -warn:4
3
4 using System;
5
6 namespace plj
7 {
8         public abstract class aClass
9         {
10                 public static implicit operator aClass(fromClass o)
11                 { 
12                         return null;
13                 }
14         }
15         
16         public class realClass1 : aClass
17         {
18                 public static implicit operator realClass1(fromClass o)
19                 {
20                         return null;
21                 }
22         }
23         
24         public class fromClass
25         {
26                 public static void Main () {}
27         }
28 }