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-11801] Property Wrapper gives bad error message for type properties #54211

Closed
an0 mannequin opened this issue Nov 18, 2019 · 1 comment
Closed

[SR-11801] Property Wrapper gives bad error message for type properties #54211

an0 mannequin opened this issue Nov 18, 2019 · 1 comment
Labels
compiler The Swift compiler in itself improvement property wrappers Feature: property wrappers type checker Area → compiler: Semantic analysis

Comments

@an0
Copy link
Mannequin

an0 mannequin commented Nov 18, 2019

Previous ID SR-11801
Radar None
Original Reporter @an0
Type Improvement
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, PropertyWrappers, TypeChecker
Assignee None
Priority Medium

md5: bb5e3a3e97a5cf753f6d8e82e44068dd

duplicates:

  • SR-11478 Using a static var with a property wrapper in a class leads to a wrong error message

Issue Description:

class Foo {
    @UserDefault(key: "a", defaultValue: 0)
    // Class stored properties not supported in classes; did you mean 'static'?
    static var a: Int
}
@beccadax
Copy link
Contributor

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement property wrappers Feature: property wrappers type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

1 participant