-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type alias is not possible when defining abstract method. #6832
Comments
looks like a duplicate of #4669 |
I don't see that #4669 has to do with type aliases. Actually, I think that, if my first example does not compile, this means type aliasing is not fully implemented or broken. |
Please reopen this one. |
abstract properties are not legal in TS today. #4669 tracks enabling it. This has nothing to do with type aliases.. |
If we had abstract properties, then my first example would compile? Note, that by type f is still a method, not an property (even if it looks syntactically like a property). |
yes. this is #4669 |
This gives an compile error:
This compiles:
Shouldn't both be possible if we support type aliases?
I used Typescript 1.7.5.
The text was updated successfully, but these errors were encountered: