Project

General

Profile

Actions

Bug #14214

closed

The direction of branch instruction is broken when block argument is used.

Added by yui-knk (Kaneko Yuichiro) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:84387]

Description

The result of this code is changed

def a(&block)
  block = 1
  p block
  p 2 if block
end

a()
ruby 2.5.0rc1 (2017-12-14 trunk 61243) [x86_64-darwin17]
1
2
ruby 2.5.0dev (2017-12-21 trunk 61384) [x86_64-darwin17]
1
Actions

Also available in: Atom PDF

Like0
Like0