-
Notifications
You must be signed in to change notification settings - Fork 470
@notUndefined attribute for abstract types #7458
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
Conversation
rescript
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/darwin-x64
@rescript/linux-x64
@rescript/win32-x64
commit: |
Awesome! Could you also raise an error when it's used on a non-abstract type? |
Should probably also add it to the editor tooling in the decorators file. |
68a9ef0
to
299d58a
Compare
@zth Done! |
@cristianoc any thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Are we happy about the name?
Nit: perhaps define the string constant separately to avoid repeating it in the code.
Would we support the lowercase version too, or rely on the camel case version spelling to be correct?
Done (extracted helper function).
I feel it is ok to rely on correct camel case spelling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge away!
Implement an attribute for abstract types which is a cleaner solution than the
hack.