## Compiler version Scala 3.6.4/3.7.0-RC1 ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala //> using options -rewrite -indent def program: Int => Int = {`1`: Int => 5} ``` ## Output (click arrow to expand) <!-- Note: to get a full crash log when using scala-cli, run compilation with the flag `--server=false` --> <details> ```scala [error] java.lang.ArrayIndexOutOfBoundsException: Index -3 out of bounds for length 22 [error] dotty.tools.dotc.parsing.Parsers$Parser.testChar(Parsers.scala:740) [error] dotty.tools.dotc.parsing.Parsers$Parser.testChars(Parsers.scala:745) [error] dotty.tools.dotc.parsing.Parsers$Parser.bracesToIndented(Parsers.scala:863) [error] dotty.tools.dotc.parsing.Parsers$Parser.inBracesOrIndented(Parsers.scala:648) [error] dotty.tools.dotc.parsing.Parsers$Parser.inDefScopeBraces(Parsers.scala:652) ...... ``` </details>