Project

General

Profile

Actions

Bug #21006

closed

`defined?((receiver).method)` raises Stack consistency error

Added by tompng (tomoya ishida) 15 days ago. Updated 15 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +MN +PRISM [arm64-darwin22]
[ruby-core:120506]

Description

$ ruby -ve "defined?((foo).bar)"
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +MN +PRISM [arm64-darwin22]
-e:1: warning: possibly useless use of defined? in void context
-e:1: [BUG] Stack consistency error (sp: 7, bp: 6)

Actions

Also available in: Atom PDF

Like0
Like0Like0