Open swift-ci opened 7 years ago
@jckarter, we have dups for this, right?
I don't recall this exact problem, but it's related to the problems with referring to `self` in `lazy` property initializers. The initializer expressions are evaluated as if they're in static rather than instance context, with some not-terribly-principled hacks to try to use instance context in certain situations.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: c9706e2038e23de6e1ecffd1c78b09darelates to:
Issue Description:
Swift 3 forbids to use static members without qualifier in instance context. But it's still allowed to use static properties in initializers of instance properties (though it's forbidden to use static methods there)
An example: