Bug #10987
Updated by nobu (Nobuyoshi Nakada) about 9 years ago
The following program emits the warning 'regex literal in condition': ~~~ruby ~~~ #!/usr/bin/ruby while gets print if /foo/../bar/ end ~~~ It seems that the parser does not recognize, that the "if" clause matches the regexp against $_