Sha256: 482af0bb792cd7122dc5639e58f80c7bd3813a97716b928bd77ee96a039f5b30

Contents?: true

Size: 403 Bytes

Versions: 19

Compression:

Stored size: 403 Bytes

Contents

class A
  def foo(x)
    bar(x)
  end

  def bar(x)
  end

  def self.test(x)
  end
end

class B < A
  def bar(x)
  end
end

A.new.foo(1)
B.new.foo("str")
B.new.bar(nil)
A.test(1)
B.test("str")

__END__
# Classes
class A
  def foo : (Integer | String) -> nil
  def bar : (Integer | String) -> nil
  def self.test : (Integer | String) -> nil
end

class B < A
  def bar : ((Integer | String)?) -> nil
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
typeprof-0.8.0 smoke/inheritance.rb
typeprof-0.7.0 smoke/inheritance.rb
typeprof-0.6.1 smoke/inheritance.rb
typeprof-0.6.0 smoke/inheritance.rb
typeprof-0.5.4 smoke/inheritance.rb
typeprof-0.5.3 smoke/inheritance.rb
typeprof-0.5.2 smoke/inheritance.rb
typeprof-0.5.1 smoke/inheritance.rb
typeprof-0.5.0 smoke/inheritance.rb
typeprof-0.4.2 smoke/inheritance.rb
typeprof-0.4.1 smoke/inheritance.rb
typeprof-0.4.0 smoke/inheritance.rb
typeprof-0.3.0 smoke/inheritance.rb
typeprof-0.2.0 smoke/inheritance.rb
typeprof-0.1.4 smoke/inheritance.rb
typeprof-0.1.3 smoke/inheritance.rb
typeprof-0.1.2 smoke/inheritance.rb
typeprof-0.1.1 smoke/inheritance.rb
typeprof-0.1.0 smoke/inheritance.rb