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