-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
@Lazy property wrapper is loaded eagerly #20
Comments
Oh wow that's definitely a bug! I'll see what I can do about this |
Well this is concerning... I have reproduced your issue in Xcode 11.6, but not in Xcode 12 (Beta 3)... |
…-eagerly-evaluated Bodge guarding against issue #20
@gshahbazian thanks for reporting this - I've released a new version with a bodgey workaround, to be removed once Swift 5.2 support is dropped |
Just realized I forgot to mark the property wrapper initializer for |
This is a test that ensures the
init
of a class isn't run when being stored at an@Lazy
property. The test fails (and matches what I saw in real world usage), which looks like the property is loaded eagerly.The text was updated successfully, but these errors were encountered: