Sha256: cfb3bab14004440358902c917c17b5fbd965adcc74ad98111a754eb2c6f4ae91

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

def foo
  a = [[42]]
  a[0][0] = "str"
  a
end

def bar(a)
  a[0][0] = "str"
  a
end

def log(a)
end

foo
a = [[42]]
bar(a)
# limitation: a is kept as [[Integer]]
log(a)

__END__
# Classes
class Object
  private
  def foo: -> [[String]]
  def bar: ([[Integer]] a) -> [[String]]
  def log: ([[Integer]] a) -> nil
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/array2.rb
typeprof-0.15.3 smoke/array2.rb
typeprof-0.15.2 smoke/array2.rb
typeprof-0.15.1 smoke/array2.rb
typeprof-0.15.0 smoke/array2.rb
typeprof-0.14.1 smoke/array2.rb
typeprof-0.14.0 smoke/array2.rb
typeprof-0.13.0 smoke/array2.rb
typeprof-0.12.0 smoke/array2.rb
typeprof-0.11.0 smoke/array2.rb
typeprof-0.10.0 smoke/array2.rb