Sha256: 115882bd6f20acc9fae25282d585a4920f8e750b0cb7f28044f29425682dc64a

Contents?: true

Size: 179 Bytes

Versions: 8

Compression:

Stored size: 179 Bytes

Contents

# RUBY_VERSION >= 3.0

def foo
  case { a: :A, b: :B, c: :C }
  in { a:, b: bb, c: :C }
    return a, bb
  end
end

foo
__END__
# Classes
class Object
  def foo : -> [:A, :B]
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/pattern-match2.rb
typeprof-0.6.1 smoke/pattern-match2.rb
typeprof-0.6.0 smoke/pattern-match2.rb
typeprof-0.5.4 smoke/pattern-match2.rb
typeprof-0.5.3 smoke/pattern-match2.rb
typeprof-0.5.2 smoke/pattern-match2.rb
typeprof-0.5.1 smoke/pattern-match2.rb
typeprof-0.5.0 smoke/pattern-match2.rb