Open connorshea opened 4 years ago
Thank you for playing TypeProf!
The reason why it fails is because there is no declaration of Base
in RBS. It works by adding an empty declaration of Base
:
module Faker
class Base
end
class Game < Base
def self.title: -> String
def self.genre: -> String
def self.platform: -> String
end
end
Currently, TypeProf requires that the input RBS is self-contained. In this case, TypeProf may assume an undefined superclass is a class name.
Anyway, TypeProf should not raise a raw exception against any input. I'll fix the issue in the next version. Thank you again!
Issue
I'm not really sure why, but this causes an internal server error:
ruby
rbs
output