X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0173-3.cs;h=f75e2714536329311156370ab575081d33b07783;hb=813c1308fe53d16b419d22777f4d1124f06e7c9e;hp=8d9b50f8172d6115763ac6ae6a561c1bc2bf4322;hpb=b6b13e72e91d5b529a6306ce53bda685932c77db;p=mono.git diff --git a/mcs/errors/cs0173-3.cs b/mcs/errors/cs0173-3.cs index 8d9b50f8172..f75e2714536 100644 --- a/mcs/errors/cs0173-3.cs +++ b/mcs/errors/cs0173-3.cs @@ -1,31 +1,13 @@ -// cs0173-3.cs: Type of conditional expression cannot be determined because there is no implicit conversion between `ClassA' and `ClassB' -// Line: 29 +// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `anonymous method' and `anonymous method' +// Line: 11 -class ClassA { - public static implicit operator ClassB (ClassA value) { - return null; - } - - public static implicit operator ClassA (ClassB value) { - return null; - } -} - -class ClassB { - public static implicit operator ClassA (ClassB value) { - return null; - } - - public static implicit operator ClassB (ClassA value) { - return null; - } -} +using System; -public class MainClass { - public static void Main() { - ClassA a = new ClassA(); - ClassB b = new ClassB(); - - System.Console.WriteLine(true ? a : b); - } +class Test +{ + public static void Main () + { + bool descending = false; + Comparison comp = descending ? ((e1, e2) => e2 < e1) : ((e1, e2) => e1 < e2); + } }