Sha256: e66d963cd17a3d7cbdb83a8cb22921112223dd14778f0d87acb26741aacb1522

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 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

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
typeprof-0.1.4 smoke/union-recv.rb
typeprof-0.1.4 smoke/inheritance2.rb
typeprof-0.1.3 smoke/inheritance2.rb
typeprof-0.1.3 smoke/union-recv.rb
typeprof-0.1.2 smoke/union-recv.rb
typeprof-0.1.2 smoke/inheritance2.rb
typeprof-0.1.1 smoke/union-recv.rb
typeprof-0.1.1 smoke/inheritance2.rb
typeprof-0.1.0 smoke/inheritance2.rb
typeprof-0.1.0 smoke/union-recv.rb