Sha256: d9d50158aee889c1338233b159b88c08f1b6a959b1d14c680753b55569b23000

Contents?: true

Size: 348 Bytes

Versions: 18

Compression:

Stored size: 348 Bytes

Contents

class SuperBase
  def self.foo
    self
  end
end

class Base < SuperBase
  def self.foo
    super
  end
end

class A < Base
  foo
end

class B < Base
  foo
end

__END__
# Classes
class SuperBase
  def self.foo : -> (A.class | B.class)
end

class Base < SuperBase
  def self.foo : -> (A.class | B.class)
end

class A < Base
end

class B < Base
end

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
typeprof-0.5.3 smoke/inheritance2.rb
typeprof-0.5.3 smoke/union-recv.rb
typeprof-0.5.2 smoke/inheritance2.rb
typeprof-0.5.2 smoke/union-recv.rb
typeprof-0.5.1 smoke/union-recv.rb
typeprof-0.5.1 smoke/inheritance2.rb
typeprof-0.5.0 smoke/inheritance2.rb
typeprof-0.5.0 smoke/union-recv.rb
typeprof-0.4.2 smoke/union-recv.rb
typeprof-0.4.2 smoke/inheritance2.rb
typeprof-0.4.1 smoke/union-recv.rb
typeprof-0.4.1 smoke/inheritance2.rb
typeprof-0.4.0 smoke/union-recv.rb
typeprof-0.4.0 smoke/inheritance2.rb
typeprof-0.3.0 smoke/inheritance2.rb
typeprof-0.3.0 smoke/union-recv.rb
typeprof-0.2.0 smoke/union-recv.rb
typeprof-0.2.0 smoke/inheritance2.rb