Issue #21985 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED, 4.0: REQUIRED to 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED, 4.0: DONE ruby_4_0 commit:e4271b554c8b13270754a45ee631789237d5cced merged revision(s) commit:24a2ba09af13b7c969733ea9370ad59d2442f4c9. ---------------------------------------- Bug #21985: RubyVM::AST negative numbers do not include - in location https://bugs.ruby-lang.org/issues/21985#change-117266 * Author: kddnewton (Kevin Newton) * Status: Closed * Backport: 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED, 4.0: DONE ---------------------------------------- ``` irb(main):007> RubyVM::AbstractSyntaxTree.parse("-1") => (SCOPE@1:0-1:2 tbl: [] args: nil body: (INTEGER@1:1-1:2 -1)) irb(main):008> ``` -- https://bugs.ruby-lang.org/