Sha256: 569c993b027bd96d1954524a4348ddad006bbb73b3167d262110d1db1666b684

Contents?: true

Size: 395 Bytes

Versions: 11

Compression:

Stored size: 395 Bytes

Contents

def log1(x)
end
def log2(x)
end

def foo
  x = nil
  1.times do |_|
    x = 1
    log1(x)
  end
  x
end

def test_yield
  yield
end

def bar
  x = nil
  test_yield do
    x = 1
    log2(x)
  end
  x
end

foo
bar

__END__
# Classes
class Object
  def log1 : (Integer?) -> nil
  def log2 : (Integer?) -> nil
  def foo : -> Integer?
  def test_yield : { -> nil } -> nil
  def bar : -> Integer?
end

Version data entries

11 entries across 11 versions & 1 rubygems

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