Open
Description
Compiler version
3.2.1
Minimized code
build.sbt (tried with sbt 1.7.1 or 1.8.0 and Java 17.0.5-tem)
Compile / scalacOptions ++= Seq("-Xfatal-warnings")
$ sbt consoleQuick
scala> :type 3
Output
-- [E129] Potential Issue Error: -----------------------------------------------
1 |3
|^
|A pure expression does nothing in statement position; you may be omitting necessary parentheses
|
| longer explanation available when compiling with `-explain`
Expectation
scala> :type 3
Int