Sha256: 5999650460ed3bc2ea266d56777b95f53b1b1fa0c54dda8b38861ed4a6c089d7

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

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