We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBS & Steep does not handle the main object well.
# sample.rb using Foo
sample.rb:1:0: [error] Type `::Object` does not have method `using` │ Diagnostic ID: Ruby::NoMethod │ └ using Foo ~~~~~
Steep (1.10.0) treats main object as Object.
Object
We propose to introduce RBS::Unnamed::TopLevelSelfClass. This is modeled on ENV and ARGF.
RBS::Unnamed::TopLevelSelfClass
ENV
ARGF
class RBS::Unnamed::TopLevelSelfClass def using: (Module arg0) -> self end
Use RBS::Unnamed::TopLevelSelfClass as the main object in Steep.
#2357
The text was updated successfully, but these errors were encountered:
No branches or pull requests
RBS & Steep does not handle the main object well.
Problem
Steep (1.10.0) treats main object as
Object
.Proposal
We propose to introduce
RBS::Unnamed::TopLevelSelfClass
.This is modeled on
ENV
andARGF
.Steep
Use
RBS::Unnamed::TopLevelSelfClass
as the main object in Steep.Reference
#2357
The text was updated successfully, but these errors were encountered: