Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Cannot codegen interface to extend another interface #122

Open

Description

@Swahvay

There is no setExtends or setExtendsf method on CodegenInterface.

Activity

  1. changed the title [-]Cannot gen interface that extends another interface[/-] [+]Cannot codegen interface to extends another interface[/+] on Dec 9, 2019
  2. changed the title [-]Cannot codegen interface to extends another interface[/-] [+]Cannot codegen interface to extend another interface[/+] on Dec 9, 2019
  3. fredemmott commented on Dec 9, 2019

    @fredemmott
    Contributor

    This is provided by ->addInterface(), ->setInterfaces() etc in https://github.com/hhvm/hack-codegen/blob/master/src/CodegenClassWithInterfaces.hack - though it does feel strange that it doesn't match the language syntax.

  4. jjergus commented on Dec 9, 2019

    @jjergus
    Contributor

    Should we add addExtends and setExtends as aliases (for CodegenInterface only) to those functions?

  5. fredemmott commented on Dec 9, 2019

    @fredemmott
    Contributor

    I'm not sure; both really have advantages - this is probably best just to be reviewed when/if it's re-unified with fb www

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions