Sha256: eb241f2b34b6e3aa57442351af25d03f64cff8951135dd9cb9e325694ed00e53

Contents?: true

Size: 412 Bytes

Versions: 12

Compression:

Stored size: 412 Bytes

Contents

type-inference --test=Proc.HigherOrder1 --should-be=Fixnum,Bignum
def set(&block)
  $block = block
end
set {|a| a + 1}
$block.call(1)_|_
EOF

type-inference --test=Proc.HigherOrder2 --should-be=Fixnum,Bignum
def adder(a)
  proc {|b| a + b }
end
adder(1).call(2)_|_
EOF

type-inference --keep-env --test=Proc.HigherOrder.Bug --should-be=Fixnum,Bignum
def adder(a)
  proc {|b| a + b }
end
adder(1).call(2)_|_
EOF

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 test/script/proc_higher_order.rsense
rsense-core-0.6.5 test/script/proc_higher_order.rsense
rsense-core-0.6.4 test/script/proc_higher_order.rsense
rsense-core-0.6.2 test/script/proc_higher_order.rsense
rsense-core-0.6.1 test/script/proc_higher_order.rsense
rsense-core-0.6.0 test/script/proc_higher_order.rsense
rsense-core-0.5.9 test/script/proc_higher_order.rsense
rsense-core-0.5.8 test/script/proc_higher_order.rsense
rsense-core-0.5.6 test/script/proc_higher_order.rsense
rsense-core-0.5.2 test/script/proc_higher_order.rsense
rsense-core-0.5.1 test/script/proc_higher_order.rsense
rsense-core-0.5.0 test/script/proc_higher_order.rsense