Skip to content

Commit

Permalink
Fixes weird Swift 4.0 compiler crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Oct 22, 2017
1 parent 04d5fd2 commit 4866057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Todo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension Todo {
static func reduce(state: Todo, event: Event) -> Todo {
switch event {
case .created(let task):
return state.map(task: task, transform: Version.mutate { _ in })
return state.map(task: task, transform: Version<Task>.mutate { _ in })
case .toggleCompleted(let task):
return state.map(task: task, transform: Version<Task>.mutate { $0.isCompleted = !$0.isCompleted })
case .archive(let task):
Expand Down

0 comments on commit 4866057

Please sign in to comment.