kotlin-result/src/main/kotlin
Michael Bull e455be2cc8 Make lambda return type of expect{Err} return Any
When constructing the exception message the toString method will be
implicitly called on the result of the lambda.

Takes inspiration from Kotlin's require function [1].

[1]: https://github.com/JetBrains/kotlin/blob/v1.2.0/libraries/stdlib/src/kotlin/util/Preconditions.kt#L26
2017-11-28 18:23:36 +00:00
..
com/github/michaelbull/result Make lambda return type of expect{Err} return Any 2017-11-28 18:23:36 +00:00