Commit b697afa
Fix parseFlags to handle constant-folded flag values
When the compiler constant-folds `Pattern.CASE_INSENSITIVE | Pattern.COMMENTS`
into a single IntConstant (e.g. 6), parseFlags failed to match. This adds a
case to decompose the constant back into individual flag bits.
See scala/scala3#25731
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0f8e77e commit b697afa
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
0 commit comments