+2002-07-02 Miguel de Icaza <miguel@ximian.com>
+
+ * class.cs (Method, Property, Indexer): Do not allow the public
+ modifier to be used in explicit interface implementations.
+
2002-07-02 Martin Baulig <martin@gnome.org>
* typemanager.cs (TypeManager.InitCoreTypes): When compiling
if ((ModFlags & Modifiers.STATIC) != 0)
implementing = null;
} else {
- if ((ModFlags & (Modifiers.PUBLIC | Modifiers.ABSTRACT)) != 0){
+ if ((ModFlags & (Modifiers.PUBLIC | Modifiers.ABSTRACT | Modifiers.VIRTUAL)) != 0){
Report.Error (
- 106, Location, "`public' or `abstract' modifiers "+
- "are not allowed in explicit interface declarations"
- );
+ 106, Location, "`public', `virtual' or `abstract' modifiers "+
+ "are not allowed in explicit interface declarations");
implementing = null;
}
}
if ((ModFlags & Modifiers.STATIC) != 0)
implementing = null;
} else {
- if ((ModFlags & (Modifiers.PUBLIC | Modifiers.ABSTRACT)) != 0){
+ if ((ModFlags & (Modifiers.PUBLIC | Modifiers.ABSTRACT | Modifiers.VIRTUAL)) != 0){
Report.Error (
- 106, Location, "`public' or `abstract' modifiers "+
+ 106, Location, "`public', `virtual' or `abstract' modifiers "+
"are not allowed in explicit interface declarations"
);
implementing = null;
if ((ModFlags & Modifiers.STATIC) != 0)
implementing = null;
} else {
- if((ModFlags&(Modifiers.PUBLIC | Modifiers.ABSTRACT)) != 0){
+ if((ModFlags&(Modifiers.PUBLIC | Modifiers.ABSTRACT | Modifiers.VIRTUAL)) != 0){
Report.Error (
106, Location,
- "`public' or `abstract' modifiers are not "+
+ "`public', `virtual' or `abstract' modifiers are not "+
"allowed in explicit interface declarations"
);
implementing = null;