Skip to content

Should check if positional_params is nil or not#449

Merged
soutaro merged 1 commit intosoutaro:masterfrom
ksss:uniform_type
Nov 14, 2021
Merged

Should check if positional_params is nil or not#449
soutaro merged 1 commit intosoutaro:masterfrom
ksss:uniform_type

Conversation

@ksss
Copy link
Contributor

@ksss ksss commented Nov 11, 2021

The following code raises an unexpected error.

[].each(*a)
Unexpected error: #<NoMethodError: undefined method `each' for nil:NilClass>
/Users/ksss/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/steep-0.46.0/lib/steep/type_inference/send_args.rb:156:in `uniform_type'
/Users/ksss/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/steep-0.46.0/lib/steep/type_inference/send_args.rb:567:in `block in each'
...

Copy link
Owner

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@soutaro soutaro merged commit 1357949 into soutaro:master Nov 14, 2021
@ksss ksss deleted the uniform_type branch November 15, 2021 01:44
@soutaro soutaro mentioned this pull request Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants