## Compiler version `3.2.0-RC1-bin-20220602-42b5941-NIGHTLY` ## 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 def bar[T] = () val foo = bar[ Int, ] ``` ## Output ```scala -- [E040] Syntax Error: scratch.scala:5:0 -------------------------------------- 5 |] |^ |an identifier expected, but ']' found ``` ## Expectation It should parse and compile with no errors. The same code compiles fine with `3.1.2`.