Sha256: ecb71e939e0cf49683ae16df0c91996f3524776b01c3f44621838d40485dea9d

Contents?: true

Size: 366 Bytes

Versions: 18

Compression:

Stored size: 366 Bytes

Contents

def foo(a)
  a[0]
end
def bar(n); end
def baz(n); end
def qux(n); end
def quux(n); end

a = [42, "str"]
foo(a)
bar(a[0])
n = 1
baz(a[n])
qux(a[2])
n = 0+0
quux(a[n])

__END__
# Classes
class Object
  def foo : ([Integer, String]) -> Integer
  def bar : (Integer) -> nil
  def baz : (String) -> nil
  def qux : (nil) -> nil
  def quux : (Integer | String) -> nil
end

Version data entries

18 entries across 18 versions & 1 rubygems

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