[SR-10113] Nested types can be redeclared in the same class hierarchy #52515
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.0-dev (LLVM 94d957ca75, Swift 1d2e2803af)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: 60d05253f55e0543cd9234c96d3fe727
Issue Description:
The following is currently legal:
However, arguably the second nested definition of
X
should be rejected with a redeclaration error.The text was updated successfully, but these errors were encountered: