Skip to content

Spurious shadowing warning with -Wshadow:type-parameter-shadow #24582

@Bersier

Description

@Bersier

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

Metadata

Metadata

Assignees

Labels

area:lintingLinting warnings enabled with -W or -Xlintitype:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions