Created
July 9, 2017 18:36
-
-
Save sleexyz/aa6d776da9ee4f36244f401d31b2333d to your computer and use it in GitHub Desktop.
callable classes cannot be extended
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @flow */ | |
| declare class Callable<A, B> { | |
| (A): B | |
| } | |
| class WithFoo<A, B> extends Callable<A, B> { | |
| foo() { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
flow v0.49.1:
https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVATApgYxgQwCcsw98BncsAYXxgICMYsAeAQQBowAhAPjADeqMGAAUbAJQAuHqgC+6MpTAB1AJYAXABYAxOHHZc+YLAA8NWAHYYqteviatOPfkJFR9oiYOFgFcoA