Skip to content

Commit

Permalink
Added doc
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsSven committed Jul 1, 2024
1 parent e077021 commit 42db378
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ inline fun <reified T : Any?> anyArray(): Array<T> {
return ArgumentMatchers.any(Array<T>::class.java) ?: arrayOf()
}

/** Matches any Kotlin value class with the same boxed type by taking its boxed type. */
inline fun <reified T > anyValueClass(): T {
require(T::class.isValue) {
"${T::class.qualifiedName} is not a value class."
Expand Down

0 comments on commit 42db378

Please sign in to comment.