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-2172] Compiler mistreats static Type property #44780

Open
iby opened this issue Jul 26, 2016 · 1 comment
Open

[SR-2172] Compiler mistreats static Type property #44780

iby opened this issue Jul 26, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@iby
Copy link

iby commented Jul 26, 2016

Previous ID SR-2172
Radar None
Original Reporter @iby
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 4a3673ba696ec8a7ab44565fb1d3de0f

relates to:

  • SR-1072 Nested type named Type should be better dealt with
  • SR-9897 '.Type' property on a type can't be escaped with backticks

Issue Description:

The following fails when attempting to access Kvc.`Type` with "Error:(…, …) cannot convert value of type '(Kvc.Type).Type' (aka 'Kvc.Type.Type') to expected argument type 'String?'". Renaming `Type` to any other reserved word works ok.

@beccadax
Copy link
Contributor

Likely duplicate of SR-1072, but I'll leave it separate just in case.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants