Aliasing .new
doesn't reuse the signature from #initialize
#2222
Labels
help-wanted
We support this change, and welcome community contributions for it.
I'm running into this with the
money
gem:Also note that no
source://
pointer comment is generated for the.new
alias.I get that technically you could override both
.new
and#initialize
to have different signatures, but I'd be surprised if that's a common pattern. AFAICT Sorbet uses#initialize
's signature to validate calls to.new
.The text was updated successfully, but these errors were encountered: