sorbet-runtime 0.6.13632 → 0.6.13634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/types/private/methods/signature_validation.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a38f300b9a61a2b06288ce274ba02ee8bcf13fac84309b5d2224c86180e6f5a6
|
|
4
|
+
data.tar.gz: b514881d392619bba66dd8c93653dd245d3ce191246e750d9ffe3f75469bd86e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eb9be0434a67481c2bb7efb97d75bf6908afeffb098a94547e7a54eceaefa8dcf1866eefa1c1cec4a8a9d6a5972997705e0d5bac0d7b4a51cfe4ec91bbd2d9c
|
|
7
|
+
data.tar.gz: d54c56982e15c1f40d0aa3fe0c64d37b447894329d8016cf901cfe8980a7422ef97cf9d3b0d74fb66e039ab9dd37e4567ff162600e58ca390fb2fa7e61f854ea
|
|
@@ -232,7 +232,9 @@ module T::Private::Methods::SignatureValidation
|
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
# block_type is set exactly when the method declares a block param, and
|
|
236
|
+
# unlike block_name, reading it doesn't rebuild `method.parameters`.
|
|
237
|
+
if !super_signature.block_type.nil? && signature.block_type.nil?
|
|
236
238
|
raise "Your definition of `#{method_name}` must accept a block parameter to be compatible " \
|
|
237
239
|
"with the method it #{mode_verb}: " \
|
|
238
240
|
"#{base_override_loc_str(signature, super_signature)}"
|