-
Notifications
You must be signed in to change notification settings - Fork 565
Add types to T::Struct.new
#986
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
Oh, I just remembered I need to check whether the superclass in the ClassDef is |
This seems to refactor a lot of code additionally to actual changes in behavior. |
ee4460f
to
cebb340
Compare
Sure. What were you thinking could be landed as pre-work? Maybe everything except the logic that actually creates the synthesized initialize method (i.e., everything except the block inside |
bf71a19
to
3bcd365
Compare
that would be perfect! |
3bcd365
to
246c9f3
Compare
332c5b2
to
c7dba53
Compare
1412388
to
77935fa
Compare
@jez bumping now that the last pay-server pr is in master-passing-tests. |
77935fa
to
093be99
Compare
ce29d3b
to
faa3e2a
Compare
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.
Other than the Inexact.new
error w.r.t. RBIs, this looks great! Thanks!
This makes subclasses of
T::Struct
have good static types fornew
.I would recommend reviewing by commit.
Motivation
To increase typedness.
Test plan
See included automated tests.