Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10334] Temporarily ban Self exposure from classes #52734

Closed
DevAndArtist mannequin opened this issue Apr 8, 2019 · 2 comments
Closed

[SR-10334] Temporarily ban Self exposure from classes #52734

DevAndArtist mannequin opened this issue Apr 8, 2019 · 2 comments
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself declarations Feature: declarations Self in class Feature → types: The 'Self' type in classes type checker Area → compiler: Semantic analysis typealias Feature → type declarations: `typealias` declarations types Feature: types

Comments

@DevAndArtist
Copy link
Mannequin

DevAndArtist mannequin commented Apr 8, 2019

Previous ID SR-10334
Radar None
Original Reporter @DevAndArtist
Type Bug
Environment

Development Snapshot 2019-04-04-a

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

md5: c504b3b8963a74b81eea3d0be185041d

Issue Description:

As per this thread:

https://forums.swift.org/t/is-it-just-me-or-did-we-end-up-having-partly-staticself-in-swift/22752/5

@slavapestov said that this feature should not be made available with the first implementation of SE-0068.

class A {
  typealias _Self = Self
}
@belkadan
Copy link
Contributor

belkadan commented Apr 8, 2019

cc @johnno1962

@johnno1962
Copy link
Contributor

#23853

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added type checker Area → compiler: Semantic analysis Self in class Feature → types: The 'Self' type in classes typealias Feature → type declarations: `typealias` declarations declarations Feature: declarations types Feature: types accepts invalid Bug: Accepts invalid labels Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself declarations Feature: declarations Self in class Feature → types: The 'Self' type in classes type checker Area → compiler: Semantic analysis typealias Feature → type declarations: `typealias` declarations types Feature: types
Projects
None yet
Development

No branches or pull requests

3 participants