summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Slice/Grammar.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/Grammar.y b/cpp/src/Slice/Grammar.y
index ba572b1d274..0e8b7274525 100644
--- a/cpp/src/Slice/Grammar.y
+++ b/cpp/src/Slice/Grammar.y
@@ -538,7 +538,7 @@ class_extends
if(!types.empty())
{
ClassDeclPtr cl = ClassDeclPtr::dynamicCast(types.front());
- if(!cl)
+ if(!cl || cl->isInterface())
{
string msg = "`";
msg += scoped->v;