Sha256: a901db841e0a16f3fae369867d0835683cbab38cd195f334f7aefd7cc9b7b2ca

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

def foo(k:)
end

h = { k: 42 }
foo(**h)

def bar(int:, str:)
end

if rand < 0.5
  h = { int: 42 }
else
  h = { str: "str" }
end
bar(**h)

def baz(**kw)
end

if rand < 0.5
  h = { int: 42 }
else
  h = { str: "str" }
end
baz(**h)

def qux(**kw)
end

qux(**any)

__END__
# Errors
smoke/kwsplat1.rb:30: [error] undefined method: Object#any

# Classes
class Object
  private
  def foo: (k: Integer) -> nil
  def bar: (int: Integer, str: String) -> nil
  def baz: (**{int: Integer, str: String}) -> nil
  def qux: (**Hash[untyped, untyped]) -> nil
end

Version data entries

3 entries across 3 versions & 1 rubygems

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