Actions
Bug #13798
closedStrange "invalid subexp call" warning happens inside of comment
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-08-10 trunk 59556) [x86_64-darwin15]
Description
Attached script renders "invalid subexp call" warning.
zsh % ruby warn.rb
warn.rb:4: warning: invalid subexp call
This is strange in several ways:
- The warning is triggered by Regexp#to_s, not by the compilation.
- There is no such thing like a subexp call in the regular expression.
Files
Actions
Like0
Like0