Skip to content

[SR-5993] Cannot subclass to a nested class ('Super' is not a member type of 'Baz'). #48550

@DevAndArtist

Description

@DevAndArtist
Previous ID SR-5993
Radar None
Original Reporter @DevAndArtist
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode Version 9.0 (9A235), Swift 4

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @slavapestov
Priority Medium

md5: 8d6c77fe197d852dcf28d4056069c764

duplicates:

  • SR-631 Extensions in different files do not recognize each other

relates to:

  • SR-631 Extensions in different files do not recognize each other

Issue Description:

A class that is nested inside a different type through extensions from a different file cannot be subclassed as another nested sub-class in yet another different file. `typealias` cannot be used as a workaround.

See `Bar.Sub1` and `Bar.Sub2` in the attached playground.

This might be related to: https://bugs.swift.org/browse/SR-631

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions