Skip to content

[SR-7083] lazy properties can't have observers #49631

Description

@jckarter
Previous ID SR-7083
Radar None
Original Reporter @jckarter
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 4
Component/s Compiler
Labels Bug, StarterBug
Assignee @theblixguy
Priority Medium

md5: 97bf74aed4a6125643746316d5582ad4

Issue Description:

The compiler won't let you put didSet/willSet observers on a lazy property. Since lazy properties are supposed to look and feel like stored properties, they should be able to have observers.

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfgood first issueGood for newcomers

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions