Sha256: 4c8d92621816dc4860801ed23acc4690ef5d90bc061102be844b5dfba139b56c

Contents?: true

Size: 275 Bytes

Versions: 11

Compression:

Stored size: 275 Bytes

Contents

def foo
  yield
end

any = undefined_method
foo(&any)

foo(&1)

__END__
# Errors
smoke/block7.rb:5: [error] undefined method: Object#undefined_method
smoke/block7.rb:8: [error] wrong argument type Integer<1> (expected Proc)

# Classes
class Object
  def foo : -> untyped
end

Version data entries

11 entries across 11 versions & 1 rubygems

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