Skip to content

Evaluation of when more lazily evaluates multiple conditions on one line. #6173

@marcandre

Description

@marcandre

DeepCover's test suite of semi-crazy corner cases found a regression in JRuby...

temp = [Symbol]; case :hello; when *temp, (p 'hola' || Integer); end

Should not print anything as the first condition is a match...

jruby 9.3.0.0-SNAPSHOT (2.6.5) 2020-04-13 d33953990e Java HotSpot(TM) 64-Bit Server VM 25.102-b14 on 1.8.0_102-b14 +jit [darwin-x86_64]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions