Skip to content

Commit

Permalink
Swift6-warnings-fix (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai authored Sep 18, 2024
1 parent 592d6aa commit c7b3a30
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions Sources/Puredux/DependencyInjection/Dependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,3 @@ public struct Dependency<T> {
}
}
}


protocol Service {

}

struct ServiceImp: Service {

}

extension Dependencies {
@DependencyEntry var intValue = 1

@DependencyEntry var uuid = { UUID() }
@DependencyEntry var now = { Date() }

}

class Foo {
@Dependency(\.intValue) var value

var uuidValue = Dependency[\.uuid]

func ffofofo() {
Dependencies[\.now] = { .distantPast }
}
}


0 comments on commit c7b3a30

Please sign in to comment.