hack-codegen
hack-codegen copied to clipboard
Cannot codegen interface to extend another interface
There is no setExtends or setExtendsf method on CodegenInterface.
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.
Should we add addExtends and setExtends as aliases (for CodegenInterface only) to those functions?
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