Was working perfectly before. I can't explain why is that by looking at the changes.
Originally created by @ThibaultVlacich on GitHub (Jun 2, 2017).
I have this error since 4.0.2:
> Cannot invoke value of type `ValueContainer<Article>.Required<Date>.Type` with argument list `(String)`
Here's the related part of the code:
```swift
import CoreStore
class Article: CoreStoreObject {
let date = Value.Required<Date>("date")
}
```
Was working perfectly before. I can't explain why is that by looking at the changes.
@JohnEstropia commented on GitHub (Jun 2, 2017):
The fix here https://github.com/JohnEstropia/CoreStore/issues/169 included a change that removed non-intuitive defaults for Date, URL, UUID, etc. For these types you'll need to provide a `default` argument:
```swift
let date = Value.Required<Date>("date", default: Date.distantPast)
```
Or you can just use `Value.Optional<Date>`.
@ThibaultVlacich commented on GitHub (Jun 2, 2017):
Oh, so it's linked to this fix. I thought it was working with 4.0.1 but I might be wrong, that's why I didn't make the connection.
@ThibaultVlacich commented on GitHub (Jun 2, 2017):
Oh, so it's linked to this fix. I thought it was working with 4.0.1 but I might be wrong, that's why I didn't make the connection.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @ThibaultVlacich on GitHub (Jun 2, 2017).
I have this error since 4.0.2:
Here's the related part of the code:
Was working perfectly before. I can't explain why is that by looking at the changes.
@JohnEstropia commented on GitHub (Jun 2, 2017):
The fix here https://github.com/JohnEstropia/CoreStore/issues/169 included a change that removed non-intuitive defaults for Date, URL, UUID, etc. For these types you'll need to provide a
defaultargument:Or you can just use
Value.Optional<Date>.@ThibaultVlacich commented on GitHub (Jun 2, 2017):
Oh, so it's linked to this fix. I thought it was working with 4.0.1 but I might be wrong, that's why I didn't make the connection.