Sha256: 0610eaea80cdde13019bee5b054005c5616030168c4ac97a7b5951dd7e0c827a

Contents?: true

Size: 270 Bytes

Versions: 18

Compression:

Stored size: 270 Bytes

Contents

def foo(x)
  yield x
  yield 1
end

foo("str") do |x|
  x
end

foo(:sym) do |x|
  if 1+1
    x
  else
    1
  end
end

__END__
# Classes
class Object
  def foo : (:sym | String) { (:sym | Integer | String) -> (:sym | Integer | String) } -> (:sym | Integer | String)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/block1.rb
typeprof-0.6.1 smoke/block1.rb
typeprof-0.6.0 smoke/block1.rb
typeprof-0.5.4 smoke/block1.rb
typeprof-0.5.3 smoke/block1.rb
typeprof-0.5.2 smoke/block1.rb
typeprof-0.5.1 smoke/block1.rb
typeprof-0.5.0 smoke/block1.rb
typeprof-0.4.2 smoke/block1.rb
typeprof-0.4.1 smoke/block1.rb
typeprof-0.4.0 smoke/block1.rb
typeprof-0.3.0 smoke/block1.rb
typeprof-0.2.0 smoke/block1.rb
typeprof-0.1.4 smoke/block1.rb
typeprof-0.1.3 smoke/block1.rb
typeprof-0.1.2 smoke/block1.rb
typeprof-0.1.1 smoke/block1.rb
typeprof-0.1.0 smoke/block1.rb