Sha256: 8f027f2efcca3e7ee494170d0c3ae7020dbc8a9948b10abc71e03f8514ef3128

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

def foo(a, *r, z)
  r
end

foo(1, 2, "S", 3)
foo(1, 2, 3)
foo("a", "b", "c")
foo(:a, :z)

def bar(a, o=1, *r, z)
  r
end

bar("A", "Z")
bar("A", "B", "Z")
bar("A", "B", "C", "Z")
bar("A", "B", "C", "D", "Z")
bar("A", "B", "C", "D", "E", "Z")

__END__
# Classes
class Object
  private
  def foo: (:a | Integer | String, *Integer | String, :z | Integer | String) -> (Array[Integer | String])
  def bar: (String, ?Integer | String, *String, String) -> Array[String]
end

Version data entries

3 entries across 3 versions & 1 rubygems

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