Revert "[mcs] Special case flowanalysis of primitive structs only when they are impor...
authorMarek Safar <marek.safar@gmail.com>
Wed, 25 Mar 2015 18:15:56 +0000 (19:15 +0100)
committerMarek Safar <marek.safar@gmail.com>
Wed, 25 Mar 2015 18:17:31 +0000 (19:17 +0100)
This reverts commit b50e898ece06bf7dacbea6211406cca1af5ea5af.

mcs/mcs/flowanalysis.cs
mcs/tests/test-616.cs

index 2fee651bed99d81124f4596ac6022f1afbacdccf..da30a3e5b907570cd2453f3c40761e43935c5f29 100644 (file)
@@ -262,7 +262,7 @@ namespace Mono.CSharp
 
                        public static StructInfo GetStructInfo (TypeSpec type, IMemberContext context)
                        {
-                               if (type.BuiltinType > 0 && type.MemberDefinition.IsImported)
+                               if (type.BuiltinType > 0)
                                        return null;
 
                                StructInfo info;
index d4adf2c26d4874905b7be3e542d029f22ce090f7..6f189e836f26476de172d806ce3ef909ee1bb93a 100644 (file)
@@ -25,6 +25,7 @@ namespace System
        public struct UInt64 {}
        public struct IntPtr {}
        public struct UIntPtr {}
+       public struct Decimal { }
        public class String { }
        public class Delegate {}
        public class MulticastDelegate {}
@@ -42,19 +43,6 @@ namespace System
                
        public interface IDisposable {}
 
-       public struct Decimal {
-
-               private int flags;
-
-               public Decimal(int[] bits) {
-                       flags = 0;
-                       SetBits(bits);
-               }
-
-               private void SetBits(int[] bits) {
-               }
-       }
-
        partial class Type
        {
                public static bool operator == (Type left, Type right)