Skip to content
New issue

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

Fix warnings #1035

Merged
merged 3 commits into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/rbs/locator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ def bar: [X < Numeric] () -> X
assert_instance_of AST::Members::MethodDefinition, cs[4]
assert_instance_of AST::Declarations::Module, cs[5]
end
end
end
end
2 changes: 1 addition & 1 deletion test/rbs/resolver/constant_resolver_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Foo
manager.build do |env|
builder = DefinitionBuilder.new(env: env)
resolver = Resolver::ConstantResolver.new(builder: builder)
namespace = Namespace.parse("::Foo")
Namespace.parse("::Foo")

resolver.resolve(:Name, context: [nil, TypeName("::Foo")]).tap do |constant|
assert_instance_of Constant, constant
Expand Down
2 changes: 1 addition & 1 deletion test/tools/sort_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def assert_sort(expected, original)
actual = Tempfile.create('rbs-sort-test-') do |f|
f.write original
f.close
system File.join(__dir__, '../../bin/sort'), f.path, exception: true
system File.join(__dir__, '../../bin/sort'), f.path, exception: true, out: IO::NULL

File.read(f.path)
end
Expand Down