Sha256: b18f07734c246db6b2a9d2c1ae7caa0c4ec2e250bff501b6d57e8159ad44b1e7

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/inheritance.rb
typeprof-0.9.1 smoke/inheritance.rb
typeprof-0.9.0 smoke/inheritance.rb