Sha256: 6b0892359f53a08e49e605f80c0c70dd65a6df47133646b1d12126435ccae1a2

Contents?: true

Size: 587 Bytes

Versions: 11

Compression:

Stored size: 587 Bytes

Contents

def f1
  yield :a, :b, :c
end
def log1(x); end
f1 {|x| log1(x) }

def f2
  yield :a, :b, :c
end
def log2(x); end
f2 {|x,| log2(x) }

def f3
  yield [:a, :b, :c]
end
def log3(x); end
f3 {|x| log3(x) }

def f4
  yield [:a, :b, :c]
end
def log4(x); end
f4 {|x,| log4(x) }

__END__
# Classes
class Object
  def f1 : { (:a, :b, :c) -> nil } -> nil
  def log1 : (:a) -> nil
  def f2 : { (:a, :b, :c) -> nil } -> nil
  def log2 : (:a) -> nil
  def f3 : { ([:a, :b, :c]) -> nil } -> nil
  def log3 : ([:a, :b, :c]) -> nil
  def f4 : { ([:a, :b, :c]) -> nil } -> nil
  def log4 : (:a) -> nil
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/block-ambiguous.rb
typeprof-0.6.1 smoke/block-ambiguous.rb
typeprof-0.6.0 smoke/block-ambiguous.rb
typeprof-0.5.4 smoke/block-ambiguous.rb
typeprof-0.5.3 smoke/block-ambiguous.rb
typeprof-0.5.2 smoke/block-ambiguous.rb
typeprof-0.5.1 smoke/block-ambiguous.rb
typeprof-0.5.0 smoke/block-ambiguous.rb
typeprof-0.4.2 smoke/block-ambiguous.rb
typeprof-0.4.1 smoke/block-ambiguous.rb
typeprof-0.4.0 smoke/block-ambiguous.rb