Support 'extends' section in package