Skip to content

Commit

Permalink
Revert "Remove unnecessary constructor"
Browse files Browse the repository at this point in the history
This reverts commit 97f15f7.

Still broken in Xcode 9.4.1 (which is currently the Travis default).
  • Loading branch information
tmandry committed Apr 20, 2019
1 parent 0fa9872 commit 4f53e3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Property.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ public class Property<TypeSpec: PropertyTypeSpec> {

/// A property that can be set. Writes happen asynchronously.
public class WriteableProperty<TypeSpec: PropertyTypeSpec>: Property<TypeSpec> {
// Due to a Swift bug I have to override this.
override init<Impl: PropertyDelegate, Notifier: PropertyNotifier>(
_ delegate: Impl, notifier: Notifier
) where Impl.T == NonOptionalType {
super.init(delegate, notifier: notifier)
}

/// The value of the property. Reading is instant and synchronous, but writing is asynchronous
/// and the value will not be updated until the write is complete. Use `set` to retrieve a
/// promise.
Expand Down

0 comments on commit 4f53e3b

Please sign in to comment.