Skip to content

Commit 8a20286

Browse files
committed
Support InvalidTypeApplication on #update_env
ref: ruby/rbs#2289
1 parent 0b05dda commit 8a20286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/steep/services/signature_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def update_env(updated_files, paths:)
295295

296296
unless errors.empty?
297297
# Builder won't be used.
298-
factory = AST::Types::Factory.new(builder: _ = nil)
298+
factory = AST::Types::Factory.new(builder: RBS::DefinitionBuilder.new(env: env, ancestor_builder: builder))
299299
return errors.map {|error| Diagnostic::Signature.from_rbs_error(error, factory: factory) }
300300
end
301301

0 commit comments

Comments
 (0)