summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 20b3125ea13..ab509811d30 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -811,7 +811,7 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p)
out << sp;
out << nl << "public protocol " << prx << ":";
- if(bases.empty())
+ if(bases.empty() || (baseClass && baseClass->allOperations().empty()))
{
out << " " << getUnqualified("Ice.ObjectPrx", swiftModule);
}