Open kejadlen opened 2 years ago
Raising exception classes and instances doesn't typecheck
begin raise StandardError, "" rescue raise StandardError.new end raise "foobar"
# TypeProf 0.15.0 # Errors test.rb:2: [error] failed to resolve overload: Object#raise test.rb:4: [error] failed to resolve overload: Object#raise # Classes ## Version info: ## * Ruby: 3.1.2 ## * RBS: 1.3.1 ## * TypeProf: 0.15.0
Not sure if this should be an issue in the TypeProf repo?
Issue
Raising exception classes and instances doesn't typecheck
ruby
rbs
output