mame / typeprof-playground

5 stars 0 forks source link

Raising exception classes and instances doesn't typecheck #11

Open kejadlen opened 2 years ago

kejadlen commented 2 years ago

Issue

Raising exception classes and instances doesn't typecheck

ruby

begin
    raise StandardError, ""
rescue
    raise StandardError.new
end

raise "foobar"

rbs

output

# 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
kejadlen commented 2 years ago

Not sure if this should be an issue in the TypeProf repo?