Sha256: 37772eed6e569dd49d38b4625a73b04325b0a1439ce9e45765cf85d79f055367
Contents?: true
Size: 290 Bytes
Versions: 4
Compression:
Stored size: 290 Bytes
Contents
# RUBY_VERSION >= 3.0 # NO_SHOW_ERRORS def foo case [:a, :b, :c] in [a, b, :c] # Due to very subtle detail of bytecode, the variables "a" and "b" could be nil return a, b end end foo __END__ # Classes class Object private def foo: -> ([:a | untyped, :b | untyped]) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.20.0 | smoke/pattern-match1.rb |
typeprof-0.15.3 | smoke/pattern-match1.rb |
typeprof-0.15.2 | smoke/pattern-match1.rb |
typeprof-0.15.1 | smoke/pattern-match1.rb |