Sha256: dca443c932b83820e3c6296895092bac82a2a55052b168a71db80b396f1a3f7f

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

def log(x)
end

[].each do |x|
  # Currently, x is bot. But, [].each is rarely useful.
  # It would be a good guess to assume a empty receiver of Array#each means a wrong guess.
  # So, it would be good to assume x as any
  log(x)
end

__END__
# Classes
class Object
  def log : (bot) -> nil
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.3.0 smoke/array-each3.rb
typeprof-0.2.0 smoke/array-each3.rb
typeprof-0.1.4 smoke/array-each3.rb
typeprof-0.1.3 smoke/array-each3.rb
typeprof-0.1.2 smoke/array-each3.rb
typeprof-0.1.1 smoke/array-each3.rb
typeprof-0.1.0 smoke/array-each3.rb