[#7637][Web]: Support empty write streams.
[mono.git] / mcs / mcs / generic.cs
index 9f31ffc736b0662550915f846695cd04968fc587..57c7ac96cd7bcb0d5395af27125bb06e19ce729c 100644 (file)
@@ -499,7 +499,7 @@ namespace Mono.CSharp {
 
                        // Copy constraint from resolved part to partial container
                        spec.SpecialConstraint = tp.spec.SpecialConstraint;
-                       spec.InterfacesDefined = tp.spec.InterfacesDefined;
+                       spec.Interfaces = tp.spec.Interfaces;
                        spec.TypeArguments = tp.spec.TypeArguments;
                        spec.BaseType = tp.spec.BaseType;
                        
@@ -2706,7 +2706,7 @@ namespace Mono.CSharp {
                        Upper   = 2
                }
 
-               protected class BoundInfo : IEquatable<BoundInfo>
+               struct BoundInfo : IEquatable<BoundInfo>
                {
                        public readonly TypeSpec Type;
                        public readonly BoundKind Kind;
@@ -2722,14 +2722,14 @@ namespace Mono.CSharp {
                                return Type.GetHashCode ();
                        }
 
-                       public virtual Expression GetTypeExpression ()
+                       public Expression GetTypeExpression ()
                        {
                                return new TypeExpression (Type, Location.Null);
                        }
 
                        #region IEquatable<BoundInfo> Members
 
-                       public virtual bool Equals (BoundInfo other)
+                       public bool Equals (BoundInfo other)
                        {
                                return Type == other.Type && Kind == other.Kind;
                        }
@@ -2785,7 +2785,7 @@ namespace Mono.CSharp {
                        AddToBounds (new BoundInfo (type, BoundKind.Lower), 0);
                }
 
-               protected void AddToBounds (BoundInfo bound, int index)
+               void AddToBounds (BoundInfo bound, int index)
                {
                        //
                        // Some types cannot be used as type arguments