Sha256: f0c64d7ac5a378b745b08560cec50f47f847f13d0434a4d9e75e3ab1bb8239ba

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 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
  private
  def foo: (Integer | String) -> Integer
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/flow5.rb
typeprof-0.9.1 smoke/flow5.rb
typeprof-0.9.0 smoke/flow5.rb