Skip to content

Commit

Permalink
Revise the fix for issue #18093
Browse files Browse the repository at this point in the history
Make sure to skip over template mixin parents etc., all the way up to
the containing class, instead of returning null if the immediate parent
isn't a class.
  • Loading branch information
kinke committed Jan 8, 2018
1 parent cc6a1b2 commit f3a40a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dmd/func.d
Expand Up @@ -616,7 +616,7 @@ extern (C++) class FuncDeclaration : Declaration
*/
final BaseClass* overrideInterface()
{
if (ClassDeclaration cd = parent.isClassDeclaration())
if (ClassDeclaration cd = toParent2().isClassDeclaration())
{
foreach (b; cd.interfaces)
{
Expand Down

0 comments on commit f3a40a9

Please sign in to comment.