Sha256: 6c3c36406d3ad847d91eb84f09c25893037e011b0f4c6a49dfad0bdf68aabb48

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

F = -> x { "str" }

def foo(&blk)
  blk.call(:sym, &F)
end

foo do |dummy, &blk|
  blk.call(42)
end

# truly expected:
# Object#foo :: (&Proc[(Symbol, &Proc[(Integer) -> String]) -> String]) -> String

__END__
# Classes
class Object
  F: ^(Integer) -> String

  private
  def foo: { (:sym) -> String } -> String
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/block5.rb
typeprof-0.15.3 smoke/block5.rb
typeprof-0.15.2 smoke/block5.rb
typeprof-0.15.1 smoke/block5.rb
typeprof-0.15.0 smoke/block5.rb
typeprof-0.14.1 smoke/block5.rb
typeprof-0.14.0 smoke/block5.rb
typeprof-0.13.0 smoke/block5.rb
typeprof-0.12.0 smoke/block5.rb
typeprof-0.11.0 smoke/block5.rb
typeprof-0.10.0 smoke/block5.rb