scala3
scala3 copied to clipboard
Spurious shadowing warning with -Wshadow:type-parameter-shadow
Compiler version
3.8.0-RC1
Minimized example
import scala.compiletime.ops.int.+
type Foo[S] = S
Warning message
Type parameter S for type Foo shadows the type defined by type S in object int