Jake Zimmerman
Jake Zimmerman
**Update**: I was able to find a very gross workaround by calling `method_missing` directly: ```ruby message.method_missing(:method) ```
This is still relevant. The `[]` method on a message likely needs to change to accept oneof fields.
> We probably won't be able to get to this in the near term, but would accept a patch. Sounds good, here you go: #24181
@froydnj The problem here is that the condition is dead, which means inference does not run in that context. We could consider running inference anyways, with two approaches: - https://github.com/sorbet/sorbet/pull/9536...
Related #1367 #2768 #6364 #202
> * `VariableUseSite` occupies 16 bytes, but has a "hole" of 4 bytes -- `TypePtr` is 8 bytes, and `LocalRef` is 4 bytes, but we need the structure to be...
I think that a similar problem exists with type members bounded by a tuple tuple type (or probably also an array type): #### Input [→ View on sorbet.run](https://sorbet.run/#%23%20typed%3A%20true%0A%0Aclass%20A%0A%20%20extend%20T%3A%3ASig%2C%20T%3A%3AGeneric%0A%0A%20%20X%20%3D%20type_member%20%7B%20%7Bupper%3A%20%5BInteger%2C%20String%5D%7D%20%7D%0A%0A%20%20sig%20%7B%20params%28x%3A%20X%29.void%20%7D%0A%20%20def%20example%28x%29%0A%20%20%20%20int%2C%20str%20%3D%20x%0A%20%20%20%20T.reveal_type%28int%29%0A%20%20%20%20T.reveal_type%28str%29%0A%20%20end%0Aend%0A%0A%23%20upper%20means%20width%20subtyping%20is%20okay%2C%20because%20we%20technically%20have%20that%20for%20tuples%0Aa%20%3D%20A%5B%5BInteger%2C%20String%2C%20Symbol%5D%5D.new%0Aa.example%28%5B0%2C%20%22%22%2C%20%3Afoo%5D%29%0A%0Aa%20%3D%20A%5B%5BInteger%2C%20Symbol%5D%5D.new%0Aa.example%28%5B0%2C%20%3Afoo%5D%29) ```ruby #...
I started a branch here, outlining that approach of flipping `parser::Send` and `parser::Block`. I think that's likely to be more robust and make things easier for your prism work, as...
We have a policy of testing changes to Sorbet against Stripe's codebase before merging them. I've kicked off a test run for the current PR. When the build finishes, I'll...
We have a policy of testing changes to Sorbet against Stripe's codebase before merging them. I've kicked off a test run for the current PR. When the build finishes, I'll...