X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-278-2-lib.cs;h=3614f024d9f2eb81ebf1b65e9bbb8c7f99647c16;hb=d56dd796fb7e85441c4ad9d3e601ae6f2feb216c;hp=c5e529e2a099556ad6501f7a29177e55f63a202c;hpb=26c74b1edf9ac0728651d8b2ac3f14020edeacd7;p=mono.git diff --git a/mcs/tests/gtest-278-2-lib.cs b/mcs/tests/gtest-278-2-lib.cs index c5e529e2a09..3614f024d9f 100644 --- a/mcs/tests/gtest-278-2-lib.cs +++ b/mcs/tests/gtest-278-2-lib.cs @@ -1,21 +1,38 @@ -// Compiler options: -t:library - -using System; - -public class C -{ - public class CC {} - - public static string Print () - { - return typeof (C).FullName; - } -} - -public class D -{ - public static string Print () - { - return typeof (D).FullName; - } -} +// Compiler options: -t:library + +// CECIL FIXME: Every method should actually throw new ApplicationException ("Should not be called"); +// but because mcs dependency on System.Reflection it cannot be done + +using System; + +public class C +{ + public class CC + { + public static string Print () + { + return typeof (CC).FullName; + } + } + + public static string Print () + { + return typeof (C).FullName; + } +} + +public class D +{ + public static string Print () + { + return typeof (D).FullName; + } +} + +public struct G +{ + public static T Test (T t) + { + return t; + } +}