Kaydet (Commit) e14e4f53 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Duplicate base checking code already covers check for opt base != XInterface

Change-Id: Icd47d87f93641a0b24a96a4be8d3d120f0405f2d
üst 40e98f43
......@@ -269,3 +269,11 @@ interface Derived {
interface Hidden;
interface Base;
};
EXPECT FAILURE "interfaceinheritance.tests 30":
interface Base {};
interface Derived {
interface Base;
[optional] interface com::sun::star::uno::XInterface;
};
......@@ -4113,7 +4113,6 @@ bool SourceProviderInterfaceTypeEntityPad::addDirectBase(
addOptionalBaseMembers(
location, yyscanner, data, base.name, base.entity);
}
//TODO: check that opt base != XInterface
(optional ? directOptionalBases : directMandatoryBases).push_back(base);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment