Skip to content

Commit

Permalink
Add a todo comment about the interface to base interface upcast
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jul 19, 2015
1 parent 2c28cec commit 023a3ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/class.c
Expand Up @@ -1657,6 +1657,12 @@ bool InterfaceDeclaration::isBaseOf(ClassDeclaration *cd, int *poffset)
*poffset = b->offset;
if (j && cd->isInterfaceDeclaration())
*poffset = OFFSET_RUNTIME;

/* TODO: Even though it's an interface to base interface upcast,
* I think we can avoid runtime offset determination ultimately.
* (I doubt that it was just a workaround for the bug in the
* inferface to Object downcast)
*/
}
return true;
}
Expand Down

0 comments on commit 023a3ae

Please sign in to comment.