Tags: yeldah3/sorbet
Tags
Add module example to T.self_type (sorbet#4263) ### Motivation Someone at work asked a question that could have been solved by pointing to this docs page with this example. However this may not be a desirable addition, as it's not too dissimilar to the existing example. ### Test plan [→ View on sorbet.run](https://sorbet.run/#%23%20typed%3A%20strict%0Aextend%20T%3A%3ASig%0A%0Aclass%20Parent%0A%20%20extend%20T%3A%3ASig%0A%0A%20%20sig%20%7Breturns(T.self_type)%7D%0A%20%20def%20foo%0A%20%20%20%20self%0A%20%20end%0Aend%0A%0Aclass%20Child%20%3C%20Parent%3B%20end%0A%0AT.reveal_type(Parent.new.foo)%20%23%20Revealed%20type%3A%20Parent%0AT.reveal_type(Child.new.foo)%20%23%20Revealed%20type%3A%20Child%0A%0Amodule%20Mixin%0A%20%20extend%20T%3A%3ASig%0A%20%20%0A%20%20sig%20%7Breturns(T.self_type)%7D%0A%20%20def%20bar%0A%20%20%20%20self%0A%20%20end%0Aend%0A%0Aclass%20UsesMixin%0A%20%20extend%20Mixin%0Aend%0A%0AT.reveal_type(UsesMixin.bar)%20%23%20Revealed%20type%3A%20T.class_of(UsesMixin))
do bulk erasing in extractClassInit (sorbet#4264)
add the ability to declare final methods directly for C extensions (s… …orbet#4260)
Actually, just go straight to flow-sensitive.md (sorbet#4256)
s/TEST_DATA/test_data/ to avoid warnings about multiply-initialized c… …onstants (sorbet#4259)
Change unwrap_nilable to allow for larger unions (sorbet#4252) * Change unwrap_nilable to allow for larger unions * don't infinitely recurse * Fix typo
Import tests for numbered parameters (sorbet#4253) Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> Signed-off-by: Vinicius Stock <vinicius.stock@shopify.com>
Fix else block conditional in builder walk (sorbet#4250)
Update argument forwarding syntax (sorbet#4247) * Update imported tests for forward arguments Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com> * Update parser for new forward arguments syntax Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com> * Update desugar for new forward arguments syntax Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com> * Update resolver for new forward argument syntax Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com> Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com>
Add Boolean -> T::Boolean autocorrect (sorbet#4229) * Add Boolean -> T::Boolean autocorrect * Add a test * Add another test * Fix typo
PreviousNext