Actions
Bug #8151
closedDuplicate character class warning
Description
I get a duplicate character class warning, but I think it's a bug. Here is the example code:
def embed exp, depth
return exp if depth == 0
embed(/#{exp}/, depth - 1)
end
3.times { |i|
puts "DEPTH #{i + 1}"
embed(/[a-z\u{7b}-\u{7d}]/, i + 1)
}
At depth = 1, there is no warning, but greater than 1, I get a duplicate character class warning. I don't think the character class overlaps, so there should never be a warning.
Actions
Like0
Like0Like0Like0