shiika icon indicating copy to clipboard operation
shiika copied to clipboard

Infer types of lambda parameters

Open yhara opened this issue 4 years ago • 0 comments

# :-(
3.times{|x: Int| ... }
# :-)
3.times{|x| ... }

The type of x should be inferred from the signature of Int#times.

yhara avatar Sep 06 '20 05:09 yhara