Closed
Description
Compiler version
3.3.0-RC2
Minimized code
import org.openjdk.jmh.annotations.*, Mode.{SingleShotTime, Throughput}
import java.util.concurrent.TimeUnit
@State(Scope.Thread)
@BenchmarkMode(Array(Throughput, SingleShotTime))
@Fork(
jvmArgsAppend = Array(
"--enable-preview",
"--enable-native-access=ALL-UNNAMED"
)
)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
class Test
https://scastie.scala-lang.org/W9ZhbHhJTr2zjkBC5FwUXQ
Output
unused imports for singleshot time, throughput, and TimeUnit
Expectation
These are clearly used.