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
self
md5: 43f8e5edd99fb3c2f4f93df15da91423
is duplicated by:
relates to:
Issue Description:
struct Foo { let bar: Int lazy var baz: Int = { return /* self. */bar }() }
Does not work unless I add a `self`before 'bar'
The text was updated successfully, but these errors were encountered:
The whole model here is broken, and the current behavior is whatever happens to be implemented. We need to make sure we do the correct thing for both lazy and non-lazy vars.
Sorry, something went wrong.
Fixed in #4676
Comment by Sebastian Hagedorn (JIRA)
Does this relate to/have an impact on https://bugs.swift.org/browse/SR-48 ?
#9920
slavapestov
No branches or pull requests
Additional Detail from JIRA
md5: 43f8e5edd99fb3c2f4f93df15da91423
is duplicated by:
relates to:
Issue Description:
Does not work unless I add a `self`before 'bar'
The text was updated successfully, but these errors were encountered: