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

Cannot specialize non-generic type 'DefaultsKey' #298

Open
Qu000 opened this issue Jun 25, 2023 · 0 comments
Open

Cannot specialize non-generic type 'DefaultsKey' #298

Qu000 opened this issue Jun 25, 2023 · 0 comments

Comments

@Qu000
Copy link

Qu000 commented Jun 25, 2023

import SwiftyUserDefaults

// MARK: 定义key
extension DefaultsKeys {
/// 用户Token
var RRUserToken: DefaultsKey<String?> { .init("RRUserToken", defaultValue: "") }
}

就直接报错 Cannot specialize non-generic type 'DefaultsKey' 了,为啥啊....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant