## Compiler version Scala 3.3.0 ## Minimized code & Output ```Scala List(1,2,3).map: x => // error: indented definitions expected, identifier x found val y = x - 1 y * y ``` https://scastie.scala-lang.org/2v7yp07mQLicgj9PPuC46g Taken from [optional braces for method arguments](https://docs.scala-lang.org/scala3/reference/other-new-features/indentation.html#optional-braces-for-method-arguments) ### More Minimised ```scala List(1,2,3).map: x => // error: indented definitions expected, identifier x found x ``` https://scastie.scala-lang.org/uzRJEI6wTsCrQDAwucv8cg ## Expectation Should not throw an error (or reference should be updated)