Project

General

Profile

Actions

Bug #21986

closed

RubyVM::AST incorrect location for literals followed by modifier `if`

Bug #21986: RubyVM::AST incorrect location for literals followed by modifier `if`

Added by kddnewton (Kevin Newton) 8 days ago. Updated 7 days ago.

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

Description

irb(main):001> RubyVM::AbstractSyntaxTree.parse("1.0if true")
=> (SCOPE@1:0-1:10 tbl: [] args: nil body: (IF@1:0-1:10 (TRUE@1:6-1:10) (FLOAT@1:3-1:3 1.0) nil))
irb(main):002> RubyVM::AbstractSyntaxTree.parse("1if true")
=> (SCOPE@1:0-1:8 tbl: [] args: nil body: (IF@1:0-1:8 (TRUE@1:4-1:8) (INTEGER@1:1-1:1 1) nil))
irb(main):003>
Actions

Also available in: PDF Atom