Sha256: 10fecdd1419642087a6dd51d3fd7b3695666c1a89e222ec82e547df7e6be0188

Contents?: true

Size: 188 Bytes

Versions: 18

Compression:

Stored size: 188 Bytes

Contents

def foo(x)
  case x
  when Integer
    x
  when String
    x.to_i
  else
    raise
  end
end

foo(1)
foo("1")

__END__
# Classes
class Object
  def foo : (Integer | String) -> Integer
end

Version data entries

18 entries across 18 versions & 1 rubygems

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