[prototype rb] Prevent error on parens-less endless method def by pocke · Pull Request #561 · ruby/rbs

Fix #551 I think this patch isn't smart, so I'd like to revert it if ruby/ruby#4016 is backported to Ruby 3.0.1.