⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
typeprof-0.12.0
/
smoke
/
View File Name :
rbs-tyvar4.rb
# This code is created by simplifying matrix.rb. # The issue occurs when `Array.new` creates a cell-type container, # so this test will be obsolete, but keep it just for case of regression. # # https://github.com/ruby/typeprof/issues/14 class Foo def initialize(ivar) @ivar = ivar end def foo(n) @ivar.each_with_index { } nil end end Foo.new([]) rows = Array.new(1) do |i| Array.new(1) do |j| "str" end end obj = Foo.new(rows) obj.foo(:a) obj.foo(:b) __END__ # Classes class Foo @ivar: Array[Array[String]] def initialize: (Array[Array[String]] ivar) -> Array[Array[String]] def foo: (:a | :b n) -> nil end