Closed euglena1215 closed 3 weeks ago
Oops, the new (?) -> void
syntax is introduced in RBS 3.5 and Steep 1.7, both of them is pre-released yet. Update your Gemfile
or equivalent to allow installing the pre-released versions.
gem "steep", "~> 1.7.0.dev", require: false
rbs-inline
gem declares a dependency to rbs-3.5
, but it doesn't have to steep
.
Thank you for your comment!
I have confirmed that (?) -> untyped
works with steep-1.7.0.dev.
I don't think users will notice that rbs-inline is a dependency of steep-1.7.0.dev or later, so I think I'll add that dependency to the gemspec.
Closing this because rbs-3.5 and steep-1.7 are released now, and the dependencies are updated.
Description
Incorrect RBS definitions are generated for methods with block parameters, causing errors during static type checking with
steep check
.Steps to Reproduce
test.rb
with the following content:rbs-inline
on the file. The generated RBS file will be:steep check
on the generated RBS file. The following error is encountered:Expected Behavior
RBS definitions for methods with block parameters should be correct. For example:
Actual Behavior
The generated RBS file for methods with block parameters is incorrect, leading to errors during type checking.
Environment